Fixes for new Upsilon version

This commit is contained in:
Deukhoofd 2019-01-19 14:19:00 +01:00
parent fc6221453d
commit 513d8069fc
No known key found for this signature in database
GPG Key ID: B4C087AC81641654
9 changed files with 4 additions and 4 deletions

Binary file not shown.

Binary file not shown.

View File

@ -150,7 +150,7 @@ namespace UpsilonLanguageServer
} }
var parsedReturnType = ParseType(returnType); var parsedReturnType = ParseType(returnType);
StaticScope.BoundScope.AssignToNearest(new InternalFunctionVariableSymbol(name, false, StaticScope.BoundScope.AssignToNearest(new InternalFunctionVariableSymbol(name, false,
parsedReturnType, parameters.ToArray()) parsedReturnType, parameters.ToArray(), null)
{ {
CommentValue = comments CommentValue = comments
}); });

View File

@ -256,11 +256,11 @@ namespace UpsilonLanguageServer.Services
} }
else if (symbol is UserDataVariableSymbol boundVar) 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) 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) private static CompletionItem BuildItem(UserDataBoundProperty property)