1 implementation of IMethodSymbolInternal
Microsoft.CodeAnalysis.CSharp (1)
Symbols\MethodSymbol.cs (1)
26internal abstract partial class MethodSymbol : Symbol, IMethodSymbolInternal
127 references to IMethodSymbolInternal
Microsoft.CodeAnalysis (79)
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)
39private readonly ConcurrentDictionary<IMethodSymbolInternal, Cci.IMethodBody> _methodBodyMap; 72_methodBodyMap = new ConcurrentDictionary<IMethodSymbolInternal, Cci.IMethodBody>(ReferenceEqualityComparer.Instance); 108public abstract IMethodSymbolInternal GetOrCreateHotReloadExceptionConstructorDefinition(); 156internal abstract Cci.IMethodReference Translate(IMethodSymbolInternal symbol, DiagnosticBag diagnostics, bool needDeclaration); 396internal Cci.IMethodBody? GetMethodBody(IMethodSymbolInternal methodSymbol) 413public void SetMethodBody(IMethodSymbolInternal methodSymbol, Cci.IMethodBody body) 423internal void SetPEEntryPoint(IMethodSymbolInternal method, DiagnosticBag diagnostics) 431internal void SetDebugEntryPoint(IMethodSymbolInternal method, DiagnosticBag diagnostics) 438private bool IsSourceDefinition(IMethodSymbolInternal method) 650where TMethodSymbol : class, IMethodSymbolInternal 799internal sealed override Cci.IMethodReference Translate(IMethodSymbolInternal symbol, DiagnosticBag diagnostics, bool needDeclaration)
Emit\EditAndContinue\DefinitionMap.cs (31)
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) 317var peMethod = GetMethodSymbol(methodHandle); 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) 670var methodHandle = GetPreviousMethodHandle(oldMethod, out var peMethod); 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)
548if (deletedMember is IMethodSymbolInternal deletedMethod) 572void 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; }
Microsoft.CodeAnalysis.CSharp (40)
Emitter\EditAndContinue\CSharpDefinitionMap.cs (2)
134protected override IMethodSymbolInternal GetMethodSymbol(MethodDefinitionHandle methodHandle) 135=> (IMethodSymbolInternal)_metadataDecoder.GetSymbolForILToken(methodHandle);
Emitter\EditAndContinue\PEDeltaAssemblyBuilder.cs (1)
300public override IMethodSymbolInternal GetOrCreateHotReloadExceptionConstructorDefinition()
Emitter\Model\PEAssemblyBuilder.cs (1)
662public override IMethodSymbolInternal GetOrCreateHotReloadExceptionConstructorDefinition()
Emitter\Model\PENetModuleBuilder.cs (1)
47public override IMethodSymbolInternal GetOrCreateHotReloadExceptionConstructorDefinition()
Lowering\AsyncRewriter\AsyncConstructor.cs (1)
19IMethodSymbolInternal ISynthesizedMethodBodyImplementationSymbol.Method
Lowering\ClosureConversion\LambdaCapturedVariable.cs (1)
164public IMethodSymbolInternal Method
Lowering\ClosureConversion\SynthesizedClosureEnvironment.cs (1)
150IMethodSymbolInternal ISynthesizedMethodBodyImplementationSymbol.Method => TopLevelMethod;
Lowering\ClosureConversion\SynthesizedClosureEnvironmentConstructor.cs (1)
19IMethodSymbolInternal ISynthesizedMethodBodyImplementationSymbol.Method
Lowering\ClosureConversion\SynthesizedClosureMethod.cs (1)
226IMethodSymbolInternal? ISynthesizedMethodBodyImplementationSymbol.Method => TopLevelMethod;
Lowering\IteratorRewriter\IteratorConstructor.cs (1)
49IMethodSymbolInternal ISynthesizedMethodBodyImplementationSymbol.Method
Lowering\IteratorRewriter\IteratorFinallyMethodSymbol.cs (1)
244IMethodSymbolInternal ISynthesizedMethodBodyImplementationSymbol.Method
Lowering\LocalRewriter\DynamicSiteContainer.cs (1)
59IMethodSymbolInternal ISynthesizedMethodBodyImplementationSymbol.Method
Lowering\StateMachineRewriter\StateMachineFieldSymbol.cs (1)
78IMethodSymbolInternal ISynthesizedMethodBodyImplementationSymbol.Method
Lowering\StateMachineRewriter\StateMachineTypeSymbol.cs (1)
48IMethodSymbolInternal ISynthesizedMethodBodyImplementationSymbol.Method
Lowering\StateMachineRewriter\SynthesizedStateMachineMethod.cs (1)
46IMethodSymbolInternal ISynthesizedMethodBodyImplementationSymbol.Method
Lowering\StateMachineRewriter\SynthesizedStateMachineProperty.cs (1)
170IMethodSymbolInternal ISynthesizedMethodBodyImplementationSymbol.Method
Symbols\MethodSymbol.cs (22)
1212bool IMethodSymbolInternal.HasDeclarativeSecurity => HasDeclarativeSecurity; 1213bool IMethodSymbolInternal.IsAccessCheckedOnOverride => IsAccessCheckedOnOverride; 1214bool IMethodSymbolInternal.IsExternal => IsExternal; 1215bool IMethodSymbolInternal.IsHiddenBySignature => !HidesBaseMethodsByName; 1216bool IMethodSymbolInternal.IsMetadataNewSlot => IsMetadataNewSlot(); 1217bool IMethodSymbolInternal.IsPlatformInvoke => GetDllImportData() != null; 1218bool IMethodSymbolInternal.HasRuntimeSpecialName => HasRuntimeSpecialName; 1219bool IMethodSymbolInternal.IsMetadataFinal => IsSealed; 1220bool IMethodSymbolInternal.HasSpecialName => HasSpecialName; 1221bool IMethodSymbolInternal.RequiresSecurityObject => RequiresSecurityObject; 1222MethodImplAttributes IMethodSymbolInternal.ImplementationAttributes => ImplementationAttributes; 1223bool IMethodSymbolInternal.IsIterator => IsIterator; 1224ISymbolInternal IMethodSymbolInternal.AssociatedSymbol => AssociatedSymbol; 1225IMethodSymbolInternal IMethodSymbolInternal.PartialImplementationPart => PartialImplementationPart; 1226IMethodSymbolInternal IMethodSymbolInternal.PartialDefinitionPart => PartialDefinitionPart; 1234int IMethodSymbolInternal.ParameterCount => ParameterCount; 1236ImmutableArray<IParameterSymbolInternal> IMethodSymbolInternal.Parameters => Parameters.Cast<ParameterSymbol, IParameterSymbolInternal>(); 1238int IMethodSymbolInternal.CalculateLocalSyntaxOffset(int localPosition, SyntaxTree localTree) => CalculateLocalSyntaxOffset(localPosition, localTree); 1240IMethodSymbolInternal IMethodSymbolInternal.Construct(params ITypeSymbolInternal[] typeArguments)
Symbols\Synthesized\SynthesizedLambdaCacheFieldSymbol.cs (1)
30IMethodSymbolInternal ISynthesizedMethodBodyImplementationSymbol.Method => _topLevelMethod;
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (2)
Emit\EditAndContinue\EditAndContinueClosureTests.cs (2)
518var localFunction0 = testData0.GetMethodData("C.<F>g__x|0_0").Method; 521var localFunction1 = diff1.TestData.GetMethodData("C.<F>g__x|0_0").Method;
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
CSharpTestBase.cs (1)
2445private static string? GetContainingTypeMetadataName(IMethodSymbolInternal method)
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (3)
FrameDecoder.cs (1)
28where TMethodSymbol : class, IMethodSymbolInternal
InstructionDecoder.cs (1)
15where TMethodSymbol : class, IMethodSymbolInternal
LanguageInstructionDecoder.cs (1)
19where TMethodSymbol : class, IMethodSymbolInternal
Microsoft.CodeAnalysis.Test.Utilities (2)
Compilation\CompilationTestDataExtensions.cs (1)
43internal static ImmutableArray<KeyValuePair<IMethodSymbolInternal, CompilationTestData.MethodData>> GetExplicitlyDeclaredMethods(this CompilationTestData data)
CompilationVerifier.cs (1)
763var method = methodData.Method.PartialDefinitionPart ?? methodData.Method;