Update Upsilon to newer version
This commit is contained in:
parent
6b2db3f169
commit
c69ffb9752
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -1,3 +1,9 @@
|
|||
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
|
||||
<s:Int64 x:Key="/Default/CodeStyle/Naming/CSharpAutoNaming/AutoNamingCompletedVersion/@EntryValue">2</s:Int64>
|
||||
<s:Boolean x:Key="/Default/CodeStyle/Naming/CSharpAutoNaming/IsNamingAutoDetectionCompleted/@EntryValue">True</s:Boolean>
|
||||
<s:Boolean x:Key="/Default/CodeStyle/Naming/CSharpAutoNaming/IsNotificationDisabled/@EntryValue">True</s:Boolean></wpf:ResourceDictionary>
|
||||
<s:Boolean x:Key="/Default/CodeStyle/Naming/CSharpAutoNaming/IsNotificationDisabled/@EntryValue">True</s:Boolean>
|
||||
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/AutoDetectedNamingRules/=Locals/@EntryIndexedValue"><Policy Inspect="True" Prefix="" Suffix="" Style="aaBb" /></s:String>
|
||||
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/AutoDetectedNamingRules/=Method/@EntryIndexedValue"><Policy Inspect="True" Prefix="" Suffix="" Style="AaBb" /></s:String>
|
||||
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/AutoDetectedNamingRules/=Parameters/@EntryIndexedValue"><Policy Inspect="True" Prefix="" Suffix="" Style="aaBb" /></s:String>
|
||||
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/AutoDetectedNamingRules/=Property/@EntryIndexedValue"><Policy Inspect="True" Prefix="" Suffix="" Style="AaBb" /></s:String>
|
||||
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/AutoDetectedNamingRules/=TypesAndNamespaces/@EntryIndexedValue"><Policy Inspect="True" Prefix="" Suffix="" Style="AaBb" /></s:String></wpf:ResourceDictionary>
|
|
@ -165,7 +165,8 @@ namespace UpsilonLanguageServer
|
|||
var parsedReturnType = ParseType(returnType);
|
||||
listOptions.Add(new InternalFunctionVariableOption(parsedReturnType, parameters.ToArray(), null));
|
||||
}
|
||||
StaticScope.BoundScope.AssignToNearest(new InternalFunctionVariableSymbol(name, false, Type.Function, listOptions)
|
||||
StaticScope.BoundScope.AssignToNearest(
|
||||
new InternalFunctionVariableSymbol(name, false, listOptions, false)
|
||||
{
|
||||
CommentValue = comments
|
||||
});
|
||||
|
|
|
@ -33,7 +33,7 @@ namespace UpsilonLanguageServer.Services
|
|||
var contents = new StringBuilder($"Kind: {findNode.Kind}");
|
||||
if (findNode is BoundExpression expression)
|
||||
{
|
||||
contents.Append($"\n\nType: {expression.Type}");
|
||||
contents.Append($"\n\nType: {expression.ValueType}");
|
||||
}
|
||||
|
||||
if (findNode is BoundVariableSymbol varSymbol)
|
||||
|
@ -50,7 +50,7 @@ namespace UpsilonLanguageServer.Services
|
|||
}
|
||||
else if (findNode is BoundVariableAssignment variableAssignment)
|
||||
{
|
||||
contents.Append($"\n\nType: {variableAssignment.Variable.Type}");
|
||||
contents.Append($"\n\nType: {variableAssignment.Variable.ValueType}");
|
||||
}
|
||||
else if (findNode is BoundFunctionExpression fe)
|
||||
{
|
||||
|
@ -59,8 +59,8 @@ namespace UpsilonLanguageServer.Services
|
|||
else if (findNode is BoundFunctionCallExpression functionCall)
|
||||
{
|
||||
contents.Append(
|
||||
$"\n\nParameters: {string.Join(", ", functionCall.Parameters.Select(x => x.Type))}");
|
||||
contents.Append($"\n\nReturns: {functionCall.Type}");
|
||||
$"\n\nParameters: {string.Join(", ", functionCall.Parameters.Select(x => x.ValueType))}");
|
||||
contents.Append($"\n\nReturns: {functionCall.ValueType}");
|
||||
}
|
||||
|
||||
return new Hover()
|
||||
|
|
Loading…
Reference in New Issue