77 references to IMethodSymbolInternal
Microsoft.CodeAnalysis (77)
CodeGen\CompilationTestData.cs (7)
25public readonly IMethodSymbolInternal Method; 27public MethodData(ILBuilder ilBuilder, IMethodSymbolInternal method) 35public readonly ConcurrentDictionary<IMethodSymbolInternal, MethodData> Methods = new ConcurrentDictionary<IMethodSymbolInternal, MethodData>(); 53public void SetMethodILBuilder(IMethodSymbolInternal method, ILBuilder builder) 58public ILBuilder GetIL(Func<IMethodSymbolInternal, bool> predicate) 125private static string GetMethodName(IMethodSymbolInternal methodSymbol)
Compilation\CommonModuleCompilationState.cs (1)
35where TMethodSymbol : class, IMethodSymbolInternal
DiagnosticAnalyzer\CompilationWithAnalyzers.cs (1)
1112if (symbol is IMethodSymbolInternal methodSymbol)
Emit\CommonPEModuleBuilder.cs (11)
37private readonly ConcurrentDictionary<IMethodSymbolInternal, Cci.IMethodBody> _methodBodyMap; 66_methodBodyMap = new ConcurrentDictionary<IMethodSymbolInternal, Cci.IMethodBody>(ReferenceEqualityComparer.Instance); 96public abstract IMethodSymbolInternal GetOrCreateHotReloadExceptionConstructorDefinition(); 123internal abstract Cci.IMethodReference Translate(IMethodSymbolInternal symbol, DiagnosticBag diagnostics, bool needDeclaration); 327internal Cci.IMethodBody? GetMethodBody(IMethodSymbolInternal methodSymbol) 344public void SetMethodBody(IMethodSymbolInternal methodSymbol, Cci.IMethodBody body) 354internal void SetPEEntryPoint(IMethodSymbolInternal method, DiagnosticBag diagnostics) 362internal void SetDebugEntryPoint(IMethodSymbolInternal method, DiagnosticBag diagnostics) 369private bool IsSourceDefinition(IMethodSymbolInternal method) 585where TMethodSymbol : class, IMethodSymbolInternal 735internal sealed override Cci.IMethodReference Translate(IMethodSymbolInternal symbol, DiagnosticBag diagnostics, bool needDeclaration)
Emit\EditAndContinue\DefinitionMap.cs (29)
24ImmutableArray<(DebugId id, IMethodSymbolInternal symbol)> lambdaSymbols, 30public ImmutableArray<(DebugId id, IMethodSymbolInternal symbol)> LambdaSymbols { get; } = lambdaSymbols; 34public IMethodSymbolInternal? GetLambdaSymbol(DebugId lambdaId) 41private readonly ImmutableDictionary<IMethodSymbolInternal, MethodInstrumentation> _methodInstrumentations; 42protected readonly IReadOnlyDictionary<IMethodSymbolInternal, EncMappedMethod> mappedMethods; 60.ToImmutableDictionary(edit => (IMethodSymbolInternal)GetISymbolInternalOrNull(edit.NewSymbol!)!, edit => edit.Instrumentation); 65private IReadOnlyDictionary<IMethodSymbolInternal, EncMappedMethod> GetMappedMethods(IEnumerable<SemanticEdit> edits) 67var mappedMethods = new Dictionary<IMethodSymbolInternal, EncMappedMethod>(); 92var oldMethod = (IMethodSymbolInternal?)GetISymbolInternalOrNull(edit.OldSymbol); 93var newMethod = (IMethodSymbolInternal?)GetISymbolInternalOrNull(edit.NewSymbol); 138public bool TryGetMethodHandle(IMethodSymbolInternal method, out MethodDefinitionHandle handle) 159public MethodDefinitionHandle GetPreviousMethodHandle(IMethodSymbolInternal oldMethod) 169public MethodDefinitionHandle GetPreviousMethodHandle(IMethodSymbolInternal oldMethod, out IMethodSymbolInternal? peMethod) 180peMethod = (IMethodSymbolInternal?)PreviousSourceToMetadataSymbolMatcher.MapDefinition(oldMethodDef)?.GetInternalSymbol(); 208protected abstract IMethodSymbolInternal GetMethodSymbol(MethodDefinitionHandle methodHandle); 210internal VariableSlotAllocator? TryCreateVariableSlotAllocator(Compilation compilation, IMethodSymbolInternal method, IMethodSymbolInternal topLevelMethod, DiagnosticBag diagnostics) 415internal MethodInstrumentation GetMethodBodyInstrumentations(IMethodSymbolInternal method) 420private void ReportMissingStateMachineAttribute(DiagnosticBag diagnostics, IMethodSymbolInternal method, string stateMachineAttributeFullName) 441IMethodSymbolInternal method, 460ImmutableArray<DebugId> getLambdaStructClosureIdsFromMetadata(IMethodSymbolInternal? lambda, DebugId methodId) 550var lambdasBuilder = ArrayBuilder<(DebugId id, IMethodSymbolInternal symbol)>.GetInstance(); 625lambdasBuilder.Add((parsedEntityId, (IMethodSymbolInternal)member)); 668public IEnumerable<(DebugId id, IMethodSymbolInternal symbol)> GetDeletedSynthesizedMethods(IMethodSymbolInternal oldMethod, ImmutableArray<EncLambdaInfo> currentLambdas) 709IEnumerable<(DebugId id, IMethodSymbolInternal symbol)> getDeletedLambdas(
Emit\EditAndContinue\DeletedMethodBody.cs (1)
69var hotReloadExceptionCtorDef = context.Module.GetOrCreateHotReloadExceptionConstructorDefinition();
Emit\EditAndContinue\DeletedPEMethodDefinition.cs (2)
18private readonly IMethodSymbolInternal _oldMethod; 21public DeletedPEMethodDefinition(IMethodSymbolInternal oldMethod, ImmutableArray<byte> bodyIL)
Emit\EditAndContinue\DeltaMetadataWriter.cs (2)
536if (deletedMember is IMethodSymbolInternal deletedMethod) 560void addDeletedClosureMethods(IMethodSymbolInternal oldMethod, ImmutableArray<EncLambdaInfo> currentLambdas, ImmutableArray<LambdaRuntimeRudeEditInfo> orderedLambdaRuntimeRudeEdits)
Emit\EditAndContinue\EncMappedMethod.cs (2)
10internal readonly struct EncMappedMethod(IMethodSymbolInternal previousMethod, Func<SyntaxNode, SyntaxNode?>? syntaxMap, Func<SyntaxNode, RuntimeRudeEdit?>? runtimeRudeEdit) 12public readonly IMethodSymbolInternal PreviousMethod = previousMethod;
Emit\EditAndContinue\SymbolChanges.cs (15)
46public readonly IReadOnlyDictionary<INamedTypeSymbolInternal, ImmutableArray<(IMethodSymbolInternal oldMethod, IMethodSymbolInternal newMethod)>> UpdatedMethods; 237if (symbol is IMethodSymbolInternal method) 354out IReadOnlyDictionary<INamedTypeSymbolInternal, ImmutableArray<(IMethodSymbolInternal oldMethod, IMethodSymbolInternal newMethod)>> updatedMethods) 357var updatedMethodsBuilder = new Dictionary<INamedTypeSymbolInternal, ArrayBuilder<(IMethodSymbolInternal oldMethod, IMethodSymbolInternal newMethod)>>(); 419var newMethod = (IMethodSymbolInternal)newMember; 429var oldMethod = (IMethodSymbolInternal)GetRequiredInternalSymbol(edit.OldSymbol); 433updatedMethodsPerType = ArrayBuilder<(IMethodSymbolInternal, IMethodSymbolInternal)>.GetInstance(); 437updatedMethodsPerType.Add((oldMethod.PartialDefinitionPart ?? oldMethod, (IMethodSymbolInternal)newMember)); 531IMethodSymbolInternal method => method.AssociatedSymbol,
MetadataReader\MetadataDecoder.cs (2)
116where MethodSymbol : class, Symbol, IMethodSymbolInternal 1621IMethodSymbolInternal attributeConstructor,
Symbols\IMethodSymbolInternal.cs (3)
50IMethodSymbolInternal? PartialImplementationPart { get; } 51IMethodSymbolInternal? PartialDefinitionPart { get; } 65IMethodSymbolInternal Construct(params ITypeSymbolInternal[] typeArguments);
Symbols\ISynthesizedMethodBodyImplementationSymbol.cs (1)
16IMethodSymbolInternal? Method { get; }