Fixes for new Upsilon version
This commit is contained in:
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);
|
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
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user