TS: Fix a typos and leftover todo

This commit is contained in:
Asger F
2019-11-19 14:55:04 +00:00
parent 01ab8f07eb
commit ec8ced7963
3 changed files with 5 additions and 6 deletions

View File

@@ -19,7 +19,7 @@ public class AFunction<B> {
private final List<ITypeExpression> parameterTypes;
private final ITypeExpression thisParameterType;
private final List<DecoratorList> parameterDecorators;
private final IntList optionalParmaeterIndices;
private final IntList optionalParameterIndices;
public static final IntList noOptionalParams = IntList.create(0, 0);
@@ -34,7 +34,7 @@ public class AFunction<B> {
List<DecoratorList> parameterDecorators,
ITypeExpression returnType,
ITypeExpression thisParameterType,
IntList optionalParmaeterIndices) {
IntList optionalParameterIndices) {
this.id = id;
this.params = new ArrayList<IPattern>(params.size());
this.defaults = new ArrayList<Expression>(params.size());
@@ -47,7 +47,7 @@ public class AFunction<B> {
this.returnType = returnType;
this.thisParameterType = thisParameterType;
this.parameterDecorators = parameterDecorators;
this.optionalParmaeterIndices = optionalParmaeterIndices;
this.optionalParameterIndices = optionalParameterIndices;
IPattern rest = null;
for (Expression param : params) {
@@ -151,6 +151,6 @@ public class AFunction<B> {
}
public IntList getOptionalParmaeterIndices() {
return optionalParmaeterIndices;
return optionalParameterIndices;
}
}

View File

@@ -1903,7 +1903,6 @@ public class TypeScriptASTConverter {
++index;
if (param.getAsJsonObject().has("questionToken")) {
list.add(index);
;
}
}
return list;