Skip to content

Commit

Permalink
Change getTragetType function
Browse files Browse the repository at this point in the history
  • Loading branch information
Wonseo-C committed Aug 9, 2022
1 parent ff951df commit 6158015
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion org.lflang/src/org/lflang/generator/TargetTypes.java
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ default String getTargetType(InferredType type) {
} else if (type.isVariableSizeList) {
return getTargetVariableSizeListType(type.baseType());
}
return type.toText();
return type.toOriginalText();
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ class TSParameterPreambleGenerator(
var customArgType: String? = null
var customTypeLabel: String? = null

val paramType = parameter.type.id
val paramType = getTargetType(parameter)
if (paramType == "string") {
mainParameters.add(parameter)
customArgType = "String";
Expand Down

0 comments on commit 6158015

Please # to comment.