Skip to content

Commit

Permalink
#79 fixed typeNameVariable
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathias Kowalzik authored and Mathias Kowalzik committed Feb 20, 2018
1 parent fb81fc1 commit b76288f
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ class MapTypeNode extends TypeNode {
private final String typeName;
private final String type;
private final List<TypeNode> typeParameters;
private final String typeNameVariable;

//lazy
private Set<TypeNode> imports;
Expand All @@ -122,6 +123,7 @@ class MapTypeNode extends TypeNode {
this.typeName = typeName;
this.type = "{ [index: " + typeParameters.get(0).getType() + "]: " + typeParameters.get(1).getType() + " }";
this.typeParameters = typeParameters;
this.typeNameVariable = "{ [index: " + typeParameters.get(0).getTypeNameVariable() + "]: " + typeParameters.get(1).getTypeNameVariable() + " }";
}

@Override
Expand Down Expand Up @@ -179,5 +181,10 @@ public Set<TypeNode> getImports() {
}
return imports;
}

@Override
public String getTypeNameVariable() {
return this.typeNameVariable;
}
}
}

0 comments on commit b76288f

Please sign in to comment.