23 references to GetSymbol
Microsoft.CodeAnalysis.CSharp (23)
Compilation\CSharpCompilation.cs (1)
1204
return (TSymbol?)(object?)symbol.
GetSymbol
<Symbol>();
Compilation\MemberSemanticModel.cs (3)
852
var localFunction = GetDeclaredSymbol((LocalFunctionStatementSyntax)paramList.Parent, cancellationToken).
GetSymbol
<MethodSymbol>();
877
lambdaSymbol = symbolInfo.Symbol.
GetSymbol
<LambdaSymbol>();
881
lambdaSymbol = symbolInfo.CandidateSymbols.Single().
GetSymbol
<LambdaSymbol>();
Compilation\SpeculativeSemanticModelWithMemberModel.cs (1)
191
var parameterSymbol = containing.GetDeclaredSymbol(paramDecl).
GetSymbol
<ParameterSymbol>();
Compilation\SyntaxTreeSemanticModel.cs (8)
1016
var parameterSymbol = containing.GetDeclaredSymbol(paramDecl).
GetSymbol
<ParameterSymbol>();
1086
var symbol = GetDeclaredSymbol(memberDecl).
GetSymbol
<SourceMemberMethodSymbol>();
1110
var symbol = GetDeclaredSymbol(accessorDecl).
GetSymbol
<SourceMemberMethodSymbol>();
1138
var propertySymbol = GetDeclaredSymbol(propertyDecl).
GetSymbol
<SourcePropertySymbol>();
1166
var enumSymbol = GetDeclaredSymbol(enumDecl).
GetSymbol
<FieldSymbol>();
1188
symbol = GetDeclaredSymbol(exprDecl).
GetSymbol
<SourceMemberMethodSymbol>();
1266
return declaredSymbol.
GetSymbol
<FieldSymbol>();
1269
return (declaredSymbol.
GetSymbol
<EventSymbol>()).AssociatedField;
Operations\CSharpOperationFactory_Methods.cs (1)
435
PropertySymbol property = AnonymousTypeManager.GetAnonymousTypeProperty(type.
GetSymbol
<NamedTypeSymbol>(), i);
Symbols\SymbolExtensions.cs (9)
774
return symbol.
GetSymbol
<Symbol>();
780
return symbol.
GetSymbol
<TypeSymbol>();
786
return symbol.
GetSymbol
<NamedTypeSymbol>();
792
return symbol.
GetSymbol
<AliasSymbol>();
798
return symbol.
GetSymbol
<LocalSymbol>();
804
return symbol.
GetSymbol
<AssemblySymbol>();
810
return symbol.
GetSymbol
<MethodSymbol>();
816
return symbol.
GetSymbol
<PropertySymbol>();
822
return symbol.
GetSymbol
<FunctionPointerTypeSymbol>();