@@ -39,7 +39,7 @@ public override AstVisitAction VisitCommand(CommandAst commandAst)
39
39
40
40
return _action ( new SymbolReference (
41
41
SymbolType . Function ,
42
- CommandHelpers . StripModuleQualification ( commandName , out _ ) ,
42
+ "fn " + CommandHelpers . StripModuleQualification ( commandName , out _ ) ,
43
43
commandName ,
44
44
commandAst . CommandElements [ 0 ] . Extent ,
45
45
commandAst . Extent ,
@@ -63,7 +63,7 @@ public override AstVisitAction VisitFunctionDefinition(FunctionDefinitionAst fun
63
63
IScriptExtent nameExtent = VisitorUtils . GetNameExtent ( functionDefinitionAst ) ;
64
64
return _action ( new SymbolReference (
65
65
symbolType ,
66
- functionDefinitionAst . Name ,
66
+ "fn " + functionDefinitionAst . Name ,
67
67
VisitorUtils . GetFunctionDisplayName ( functionDefinitionAst ) ,
68
68
nameExtent ,
69
69
functionDefinitionAst . Extent ,
@@ -77,7 +77,7 @@ public override AstVisitAction VisitParameter(ParameterAst parameterAst)
77
77
// getting the TypeConstraintAst somehow?
78
78
return _action ( new SymbolReference (
79
79
SymbolType . Parameter ,
80
- "$ " + parameterAst . Name . VariablePath . UserPath ,
80
+ "var " + parameterAst . Name . VariablePath . UserPath ,
81
81
VisitorUtils . GetParamDisplayName ( parameterAst ) ,
82
82
parameterAst . Name . Extent ,
83
83
parameterAst . Extent ,
@@ -98,7 +98,7 @@ public override AstVisitAction VisitVariableExpression(VariableExpressionAst var
98
98
// the same function definition.
99
99
return _action ( new SymbolReference (
100
100
SymbolType . Variable ,
101
- "$ " + variableExpressionAst . VariablePath . UserPath ,
101
+ "var " + variableExpressionAst . VariablePath . UserPath ,
102
102
"$" + variableExpressionAst . VariablePath . UserPath ,
103
103
variableExpressionAst . Extent ,
104
104
variableExpressionAst . Extent , // TODO: Maybe parent?
@@ -115,7 +115,7 @@ public override AstVisitAction VisitTypeDefinition(TypeDefinitionAst typeDefinit
115
115
IScriptExtent nameExtent = VisitorUtils . GetNameExtent ( typeDefinitionAst ) ;
116
116
return _action ( new SymbolReference (
117
117
symbolType ,
118
- typeDefinitionAst . Name ,
118
+ "type " + typeDefinitionAst . Name ,
119
119
( symbolType is SymbolType . Enum ? "enum " : "class " ) + typeDefinitionAst . Name + " { }" ,
120
120
nameExtent ,
121
121
typeDefinitionAst . Extent ,
@@ -127,7 +127,7 @@ public override AstVisitAction VisitTypeExpression(TypeExpressionAst typeExpress
127
127
{
128
128
return _action ( new SymbolReference (
129
129
SymbolType . Type ,
130
- typeExpressionAst . TypeName . Name ,
130
+ "type " + typeExpressionAst . TypeName . Name ,
131
131
"(type) " + typeExpressionAst . TypeName . Name ,
132
132
typeExpressionAst . Extent ,
133
133
typeExpressionAst . Extent ,
@@ -139,7 +139,7 @@ public override AstVisitAction VisitTypeConstraint(TypeConstraintAst typeConstra
139
139
{
140
140
return _action ( new SymbolReference (
141
141
SymbolType . Type ,
142
- typeConstraintAst . TypeName . Name ,
142
+ "type " + typeConstraintAst . TypeName . Name ,
143
143
"(type) " + typeConstraintAst . TypeName . Name ,
144
144
typeConstraintAst . Extent ,
145
145
typeConstraintAst . Extent ,
@@ -157,7 +157,7 @@ public override AstVisitAction VisitFunctionMember(FunctionMemberAst functionMem
157
157
158
158
return _action ( new SymbolReference (
159
159
symbolType ,
160
- functionMemberAst . Name , // We bucket all the overloads.
160
+ "fn " + functionMemberAst . Name , // We bucket all the overloads.
161
161
VisitorUtils . GetMemberOverloadName ( functionMemberAst ) ,
162
162
nameExtent ,
163
163
functionMemberAst . Extent ,
@@ -176,7 +176,7 @@ propertyMemberAst.Parent is TypeDefinitionAst typeAst && typeAst.IsEnum
176
176
177
177
return _action ( new SymbolReference (
178
178
symbolType ,
179
- "$ " + propertyMemberAst . Name ,
179
+ "var " + propertyMemberAst . Name ,
180
180
VisitorUtils . GetMemberOverloadName ( propertyMemberAst ) ,
181
181
VisitorUtils . GetNameExtent ( propertyMemberAst ) ,
182
182
propertyMemberAst . Extent ,
@@ -195,9 +195,7 @@ public override AstVisitAction VisitMemberExpression(MemberExpressionAst memberE
195
195
// TODO: It's too bad we can't get the property's real symbol and reuse its display string.
196
196
return _action ( new SymbolReference (
197
197
SymbolType . Property ,
198
- #pragma warning disable CS8604 // Possible null reference argument.
199
- "$" + memberName ,
200
- #pragma warning restore CS8604
198
+ "var " + memberName ,
201
199
"(property) " + memberName ,
202
200
memberExpressionAst . Member . Extent ,
203
201
memberExpressionAst . Extent ,
@@ -216,9 +214,7 @@ public override AstVisitAction VisitInvokeMemberExpression(InvokeMemberExpressio
216
214
// TODO: It's too bad we can't get the member's real symbol and reuse its display string.
217
215
return _action ( new SymbolReference (
218
216
SymbolType . Method ,
219
- #pragma warning disable CS8604 // Possible null reference argument.
220
- memberName ,
221
- #pragma warning restore CS8604
217
+ "fn " + memberName ,
222
218
"(method) " + memberName ,
223
219
methodCallAst . Member . Extent ,
224
220
methodCallAst . Extent ,
@@ -238,9 +234,7 @@ public override AstVisitAction VisitConfigurationDefinition(ConfigurationDefinit
238
234
IScriptExtent nameExtent = VisitorUtils . GetNameExtent ( configurationDefinitionAst ) ;
239
235
return _action ( new SymbolReference (
240
236
SymbolType . Configuration ,
241
- #pragma warning disable CS8604 // Possible null reference argument.
242
- name ,
243
- #pragma warning restore CS8604
237
+ "dsc " + name ,
244
238
"configuration " + name + " { }" ,
245
239
nameExtent ,
246
240
configurationDefinitionAst . Extent ,
0 commit comments