...
This commit is contained in:
@@ -837,13 +837,13 @@ public sealed class TypeChecker
|
||||
BoolTypeSyntax => new NubBoolType(),
|
||||
CStringTypeSyntax => new NubCStringType(),
|
||||
IntTypeSyntax i => new NubIntType(i.Signed, i.Width),
|
||||
CustomTypeSyntax c => ResolveCustomType(c),
|
||||
FloatTypeSyntax f => new NubFloatType(f.Width),
|
||||
FuncTypeSyntax func => new NubFuncType(func.Parameters.Select(ResolveType).ToList(), ResolveType(func.ReturnType)),
|
||||
ArrayTypeSyntax arr => new NubArrayType(ResolveType(arr.BaseType)),
|
||||
PointerTypeSyntax ptr => new NubPointerType(ResolveType(ptr.BaseType)),
|
||||
StringTypeSyntax => new NubStringType(),
|
||||
TemplateTypeSyntax template => throw new NotImplementedException(),
|
||||
CustomTypeSyntax c => ResolveCustomType(c),
|
||||
TemplateTypeSyntax t => ResolveTemplateType(t),
|
||||
VoidTypeSyntax => new NubVoidType(),
|
||||
_ => throw new NotSupportedException($"Unknown type syntax: {type}")
|
||||
};
|
||||
@@ -907,6 +907,11 @@ public sealed class TypeChecker
|
||||
_resolvingTypes.Remove(key);
|
||||
}
|
||||
}
|
||||
|
||||
private NubType ResolveTemplateType(TemplateTypeSyntax template)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
|
||||
public enum VariableKind
|
||||
|
||||
Reference in New Issue
Block a user