@@ -89,8 +89,8 @@ public override AstVisitAction VisitVariableExpression(VariableExpressionAst var
89
89
// the same function definition.
90
90
return _action ( new SymbolReference (
91
91
SymbolType . Variable ,
92
- $ "$ { variableExpressionAst . VariablePath . UserPath } " ,
93
- $ "$ { variableExpressionAst . VariablePath . UserPath } " ,
92
+ "$" + variableExpressionAst . VariablePath . UserPath ,
93
+ "$" + variableExpressionAst . VariablePath . UserPath ,
94
94
variableExpressionAst . Extent ,
95
95
variableExpressionAst . Extent , // TODO: Maybe parent?
96
96
_file ,
@@ -119,7 +119,7 @@ public override AstVisitAction VisitTypeExpression(TypeExpressionAst typeExpress
119
119
return _action ( new SymbolReference (
120
120
SymbolType . Type ,
121
121
typeExpressionAst . TypeName . Name ,
122
- typeExpressionAst . TypeName . Name ,
122
+ "(type) " + typeExpressionAst . TypeName . Name ,
123
123
typeExpressionAst . Extent ,
124
124
typeExpressionAst . Extent ,
125
125
_file ,
@@ -131,7 +131,7 @@ public override AstVisitAction VisitTypeConstraint(TypeConstraintAst typeConstra
131
131
return _action ( new SymbolReference (
132
132
SymbolType . Type ,
133
133
typeConstraintAst . TypeName . Name ,
134
- "[ " + typeConstraintAst . TypeName . Name + "]" ,
134
+ "(type) " + typeConstraintAst . TypeName . Name ,
135
135
typeConstraintAst . Extent ,
136
136
typeConstraintAst . Extent ,
137
137
_file ,
@@ -184,12 +184,13 @@ public override AstVisitAction VisitMemberExpression(MemberExpressionAst memberE
184
184
return AstVisitAction . Continue ;
185
185
}
186
186
187
+ // TODO: It's too bad we can't get the member's real symbol and reuse its display string.
187
188
return _action ( new SymbolReference (
188
189
SymbolType . Property ,
189
190
#pragma warning disable CS8604 // Possible null reference argument.
190
191
memberName ,
191
192
#pragma warning restore CS8604
192
- memberExpressionAst . Member . Extent . Text ,
193
+ "(method) " + memberName ,
193
194
memberExpressionAst . Member . Extent ,
194
195
memberExpressionAst . Extent ,
195
196
_file ,
@@ -209,7 +210,7 @@ public override AstVisitAction VisitInvokeMemberExpression(InvokeMemberExpressio
209
210
#pragma warning disable CS8604 // Possible null reference argument.
210
211
memberName ,
211
212
#pragma warning restore CS8604
212
- methodCallAst . Member . Extent . Text ,
213
+ "(method) " + memberName ,
213
214
methodCallAst . Member . Extent ,
214
215
methodCallAst . Extent ,
215
216
_file ,
0 commit comments