24 references to GetISymbol
Microsoft.CodeAnalysis (24)
CodeGen\CompilationTestData.cs (1)
127
IMethodSymbol iMethod = (IMethodSymbol)methodSymbol.
GetISymbol
();
CodeGen\PermissionSetAttribute.cs (1)
84
ISymbol iSymbol = _sourceAttribute.GetType(context).GetInternalSymbol()!.
GetISymbol
();
Diagnostic\DiagnosticInfo.cs (1)
343
var symbol = _arguments[i] as ISymbol ?? (_arguments[i] as ISymbolInternal)?.
GetISymbol
();
Diagnostic\Location.cs (1)
51
public IModuleSymbol? MetadataModule { get { return (IModuleSymbol?)MetadataModuleInternal?.
GetISymbol
(); } }
DiagnosticAnalyzer\SymbolDeclaredCompilationEvent.cs (1)
31
public ISymbol Symbol => SymbolInternal.
GetISymbol
();
Emit\CommonPEModuleBuilder.cs (2)
331
Debug.Assert(((IMethodSymbol)methodSymbol.
GetISymbol
()).PartialDefinitionPart == null); // Must be definition.
348
Debug.Assert(((IMethodSymbol)methodSymbol.
GetISymbol
()).PartialDefinitionPart == null); // Must be definition.
Emit\EditAndContinue\DeltaMetadataWriter.cs (1)
842
if (symbol != null && _changes.IsAdded(symbol.
GetISymbol
()))
Emit\NoPia\CommonEmbeddedMethod.cs (1)
310
return UnderlyingMethod.GetInternalSymbol().
GetISymbol
().ToDisplayString(SymbolDisplayFormat.ILVisualizationFormat);
Emit\NoPia\CommonEmbeddedType.cs (1)
715
return UnderlyingNamedType.GetInternalSymbol().
GetISymbol
().ToDisplayString(SymbolDisplayFormat.ILVisualizationFormat);
Emit\SemanticEdit.cs (2)
216
=> new SemanticEdit(kind, oldSymbol?.
GetISymbol
(), newSymbol?.
GetISymbol
(), syntaxMap, instrumentation: default);
Operations\ControlFlowGraphBuilder.cs (8)
3334
var method = (IMethodSymbol?)_compilation.CommonGetSpecialTypeMember(nullableMember)?.
GetISymbol
();
4172
? (IMethodSymbol?)_compilation.CommonGetWellKnownTypeMember(WellKnownMember.System_IAsyncDisposable__DisposeAsync)?.
GetISymbol
()
4173
: (IMethodSymbol?)_compilation.CommonGetSpecialTypeMember(SpecialMember.System_IDisposable__Dispose)?.
GetISymbol
());
4327
var enterMethod = (IMethodSymbol?)_compilation.CommonGetWellKnownTypeMember(WellKnownMember.System_Threading_Monitor__Enter2)?.
GetISymbol
();
4333
enterMethod = (IMethodSymbol?)_compilation.CommonGetWellKnownTypeMember(WellKnownMember.System_Threading_Monitor__Enter)?.
GetISymbol
();
4416
var exitMethod = (IMethodSymbol?)_compilation.CommonGetWellKnownTypeMember(WellKnownMember.System_Threading_Monitor__Exit)?.
GetISymbol
();
4788
var method = (IMethodSymbol?)_compilation.CommonGetWellKnownTypeMember(helper)?.
GetISymbol
();
7793
_compilation.CommonGetWellKnownTypeMember(WellKnownMember.System_InvalidOperationException__ctor))?.
GetISymbol
();
PEWriter\MetadataWriter.PortablePdb.cs (1)
968
var peReader = pair.AssemblySymbol.
GetISymbol
() is IAssemblySymbol assemblySymbol
SymbolDisplay\FormattedSymbol.cs (1)
35
return _symbol.
GetISymbol
().ToDisplayString(_symbolDisplayFormat);
Symbols\ITypeSymbolInternal.cs (1)
38
/// This API and <see cref="ISymbolInternal.
GetISymbol
"/> should return the same object.
Symbols\TypedConstant.cs (1)
83
return symbol.
GetISymbol
();