Fixes for new Upsilon version

This commit is contained in:
Deukhoofd committed 2019-01-19 14:19:00 +01:00
1 parent fc6221453d
commit 513d8069fc
9 files changed
+4 -4

No files matched your search

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -150,7 +150,7 @@ namespace UpsilonLanguageServer
}
var parsedReturnType = ParseType(returnType);
StaticScope.BoundScope.AssignToNearest(new InternalFunctionVariableSymbol(name, false,
parsedReturnType, parameters.ToArray())
parsedReturnType, parameters.ToArray(), null)
{
CommentValue = comments
});
@@ -256,11 +256,11 @@ namespace UpsilonLanguageServer.Services
}
else if (symbol is UserDataVariableSymbol boundVar)
{
if (boundVar.Type == Type.Function)
if (boundVar.TypeContainer == Type.Function)
{
}
else if (boundVar.Type == Type.UserData)
else if (boundVar.TypeContainer == Type.UserData)
{
if (boundVar.BoundTypeDefinition is UserDataBoundEnumDefinition)
{
@@ -269,7 +269,7 @@ namespace UpsilonLanguageServer.Services
}
}
return new CompletionItem(symbol.Name, kind, symbol.Type.ToString(), documentation, data);
return new CompletionItem(symbol.Name, kind, symbol.TypeContainer.ToString(), documentation, data);
}
private static CompletionItem BuildItem(UserDataBoundProperty property)