2 implementations of GetISymbol
Microsoft.CodeAnalysis.CSharp (1)
Symbols\Symbol.cs (1)
249ISymbol ISymbolInternal.GetISymbol() => this.ISymbol;
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\Symbol.vb (1)
1317Private Function ISymbolInternal_GetISymbol() As ISymbol Implements ISymbolInternal.GetISymbol
42 references to GetISymbol
Microsoft.CodeAnalysis (29)
CodeGen\CompilationTestData.cs (1)
127IMethodSymbol iMethod = (IMethodSymbol)methodSymbol.GetISymbol();
CodeGen\PermissionSetAttribute.cs (1)
84ISymbol iSymbol = _sourceAttribute.GetType(context).GetInternalSymbol()!.GetISymbol();
Diagnostic\DiagnosticInfo.cs (1)
400var symbol = _arguments[i] as ISymbol ?? (_arguments[i] as ISymbolInternal)?.GetISymbol();
Diagnostic\Location.cs (1)
51public IModuleSymbol? MetadataModule { get { return (IModuleSymbol?)MetadataModuleInternal?.GetISymbol(); } }
Emit\CommonPEModuleBuilder.cs (2)
291Debug.Assert(((IMethodSymbol)methodSymbol.GetISymbol()).PartialDefinitionPart == null); // Must be definition. 307Debug.Assert(((IMethodSymbol)methodSymbol.GetISymbol()).PartialDefinitionPart == null); // Must be definition.
Emit\EditAndContinue\DefinitionMap.cs (1)
360MessageProvider.GetErrorDisplayString(method.GetISymbol()),
Emit\EditAndContinue\DeltaMetadataWriter.cs (1)
797if (symbol != null && _changes.IsAdded(symbol.GetISymbol()))
Emit\EditAndContinue\SymbolChanges.cs (5)
75var containingSymbol = containingType.GetInternalSymbol()?.GetISymbol(); 140=> definition.GetInternalSymbol() is { } internalSymbol && IsReplaced(internalSymbol.GetISymbol(), checkEnclosingTypes); 193var current = symbol.GetISymbol(); 294return GetChange(symbol.GetISymbol()); 588var field = fieldDefinition.GetInternalSymbol()?.GetISymbol();
Emit\NoPia\CommonEmbeddedMethod.cs (1)
306return UnderlyingMethod.GetInternalSymbol().GetISymbol().ToDisplayString(SymbolDisplayFormat.ILVisualizationFormat);
Emit\NoPia\CommonEmbeddedType.cs (1)
714return UnderlyingNamedType.GetInternalSymbol().GetISymbol().ToDisplayString(SymbolDisplayFormat.ILVisualizationFormat);
Emit\SemanticEdit.cs (2)
161=> new SemanticEdit(kind, oldSymbol?.GetISymbol(), newSymbol?.GetISymbol(), syntaxMap, preserveLocalVariables, instrumentation: default);
Operations\ControlFlowGraphBuilder.cs (8)
3317var method = (IMethodSymbol?)_compilation.CommonGetSpecialTypeMember(nullableMember)?.GetISymbol(); 4142? (IMethodSymbol?)_compilation.CommonGetWellKnownTypeMember(WellKnownMember.System_IAsyncDisposable__DisposeAsync)?.GetISymbol() 4143: (IMethodSymbol?)_compilation.CommonGetSpecialTypeMember(SpecialMember.System_IDisposable__Dispose)?.GetISymbol()); 4246var enterMethod = (IMethodSymbol?)_compilation.CommonGetWellKnownTypeMember(WellKnownMember.System_Threading_Monitor__Enter2)?.GetISymbol(); 4252enterMethod = (IMethodSymbol?)_compilation.CommonGetWellKnownTypeMember(WellKnownMember.System_Threading_Monitor__Enter)?.GetISymbol(); 4335var exitMethod = (IMethodSymbol?)_compilation.CommonGetWellKnownTypeMember(WellKnownMember.System_Threading_Monitor__Exit)?.GetISymbol(); 4691var method = (IMethodSymbol?)_compilation.CommonGetWellKnownTypeMember(helper)?.GetISymbol(); 7527_compilation.CommonGetWellKnownTypeMember(WellKnownMember.System_InvalidOperationException__ctor))?.GetISymbol();
PEWriter\MetadataWriter.PortablePdb.cs (1)
968var peReader = pair.AssemblySymbol.GetISymbol() is IAssemblySymbol assemblySymbol
SymbolDisplay\FormattedSymbol.cs (1)
35return _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)
83return symbol.GetISymbol();
Microsoft.CodeAnalysis.CSharp (3)
Emitter\EditAndContinue\EmitHelpers.cs (1)
82filterOpt: s => changes.RequiresCompilation(s.GetISymbol()),
Emitter\Model\ExpandedVarargsMethodReference.cs (1)
218var symbol = (value as ISymbolInternal)?.GetISymbol();
Symbols\Source\SourceNamedTypeSymbol.cs (1)
1620if (moduleBuilder.EncSymbolChanges?.IsReplaced(((ISymbolInternal)this).GetISymbol()) == true)
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (2)
InstructionDecoder.cs (2)
66var parameters = ((IMethodSymbol)method.GetISymbol()).Parameters; 117return ((IMethodSymbol)method.GetISymbol()).ReturnType.ToDisplayString(DisplayFormat);
Microsoft.CodeAnalysis.Test.Utilities (4)
Compilation\CompilationDifference.cs (1)
143var actual = EmitResult.Baseline.SynthesizedMembers.Single(e => e.Key.ToString() == typeName).Value.Where(s => s.Kind == SymbolKind.Field).Select(s => (IFieldSymbol)s.GetISymbol()).Select(f => f.Name + ": " + f.Type);
CompilationVerifier.cs (1)
713.Select(f => $"{((IFieldSymbol)f.GetISymbol()).Type.ToString()} {f.Name}")
Metadata\ILBuilderVisualizer.cs (2)
62ISymbol symbol = ((reference as ISymbolInternal) ?? (reference as Cci.IReference)?.GetInternalSymbol())?.GetISymbol(); 68return (((type as ISymbolInternal) ?? (type as Cci.IReference)?.GetInternalSymbol()) is ISymbolInternal symbol) ? symbol.GetISymbol().ToDisplayString(SymbolDisplayFormat.ILVisualizationFormat) : type.ToString();
Microsoft.CodeAnalysis.VisualBasic (3)
Emit\EditAndContinue\EmitHelpers.vb (1)
73filterOpt:=Function(s) changes.RequiresCompilation(s.GetISymbol()),
Symbols\Source\SourceNamedTypeSymbol.vb (1)
2535If moduleBuilder.EncSymbolChanges?.IsReplaced(CType(Me, ISymbolInternal).GetISymbol()) = True Then
Symbols\Symbol.vb (1)
1317Private Function ISymbolInternal_GetISymbol() As ISymbol Implements ISymbolInternal.GetISymbol
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (1)
Compilation\CompilationAPITests.vb (1)
2508Assert.Null(comp.GetMetadataReference(DirectCast(assembly.GetISymbol(), IAssemblySymbol)))