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