1 implementation of IMethodSymbolInternal
Microsoft.CodeAnalysis.CSharp (1)
Symbols\MethodSymbol.cs (1)
26
internal abstract partial class MethodSymbol : Symbol,
IMethodSymbolInternal
127 references to IMethodSymbolInternal
Microsoft.CodeAnalysis (79)
CodeGen\CompilationTestData.cs (7)
25
public readonly
IMethodSymbolInternal
Method;
27
public MethodData(ILBuilder ilBuilder,
IMethodSymbolInternal
method)
35
public readonly ConcurrentDictionary<
IMethodSymbolInternal
, MethodData> Methods = new ConcurrentDictionary<
IMethodSymbolInternal
, MethodData>();
53
public void SetMethodILBuilder(
IMethodSymbolInternal
method, ILBuilder builder)
58
public ILBuilder GetIL(Func<
IMethodSymbolInternal
, bool> predicate)
125
private static string GetMethodName(
IMethodSymbolInternal
methodSymbol)
Compilation\CommonModuleCompilationState.cs (1)
35
where TMethodSymbol : class,
IMethodSymbolInternal
DiagnosticAnalyzer\CompilationWithAnalyzers.cs (1)
1112
if (symbol is
IMethodSymbolInternal
methodSymbol)
Emit\CommonPEModuleBuilder.cs (11)
39
private readonly ConcurrentDictionary<
IMethodSymbolInternal
, Cci.IMethodBody> _methodBodyMap;
72
_methodBodyMap = new ConcurrentDictionary<
IMethodSymbolInternal
, Cci.IMethodBody>(ReferenceEqualityComparer.Instance);
108
public abstract
IMethodSymbolInternal
GetOrCreateHotReloadExceptionConstructorDefinition();
156
internal abstract Cci.IMethodReference Translate(
IMethodSymbolInternal
symbol, DiagnosticBag diagnostics, bool needDeclaration);
396
internal Cci.IMethodBody? GetMethodBody(
IMethodSymbolInternal
methodSymbol)
413
public void SetMethodBody(
IMethodSymbolInternal
methodSymbol, Cci.IMethodBody body)
423
internal void SetPEEntryPoint(
IMethodSymbolInternal
method, DiagnosticBag diagnostics)
431
internal void SetDebugEntryPoint(
IMethodSymbolInternal
method, DiagnosticBag diagnostics)
438
private bool IsSourceDefinition(
IMethodSymbolInternal
method)
650
where TMethodSymbol : class,
IMethodSymbolInternal
799
internal sealed override Cci.IMethodReference Translate(
IMethodSymbolInternal
symbol, DiagnosticBag diagnostics, bool needDeclaration)
Emit\EditAndContinue\DefinitionMap.cs (31)
24
ImmutableArray<(DebugId id,
IMethodSymbolInternal
symbol)> lambdaSymbols,
30
public ImmutableArray<(DebugId id,
IMethodSymbolInternal
symbol)> LambdaSymbols { get; } = lambdaSymbols;
34
public
IMethodSymbolInternal
? GetLambdaSymbol(DebugId lambdaId)
41
private readonly ImmutableDictionary<
IMethodSymbolInternal
, MethodInstrumentation> _methodInstrumentations;
42
protected readonly IReadOnlyDictionary<
IMethodSymbolInternal
, EncMappedMethod> mappedMethods;
60
.ToImmutableDictionary(edit => (
IMethodSymbolInternal
)GetISymbolInternalOrNull(edit.NewSymbol!)!, edit => edit.Instrumentation);
65
private IReadOnlyDictionary<
IMethodSymbolInternal
, EncMappedMethod> GetMappedMethods(IEnumerable<SemanticEdit> edits)
67
var mappedMethods = new Dictionary<
IMethodSymbolInternal
, EncMappedMethod>();
92
var
oldMethod = (
IMethodSymbolInternal
?)GetISymbolInternalOrNull(edit.OldSymbol);
93
var
newMethod = (
IMethodSymbolInternal
?)GetISymbolInternalOrNull(edit.NewSymbol);
138
public bool TryGetMethodHandle(
IMethodSymbolInternal
method, out MethodDefinitionHandle handle)
159
public MethodDefinitionHandle GetPreviousMethodHandle(
IMethodSymbolInternal
oldMethod)
169
public MethodDefinitionHandle GetPreviousMethodHandle(
IMethodSymbolInternal
oldMethod, out
IMethodSymbolInternal
? peMethod)
180
peMethod = (
IMethodSymbolInternal
?)PreviousSourceToMetadataSymbolMatcher.MapDefinition(oldMethodDef)?.GetInternalSymbol();
208
protected abstract
IMethodSymbolInternal
GetMethodSymbol(MethodDefinitionHandle methodHandle);
210
internal VariableSlotAllocator? TryCreateVariableSlotAllocator(Compilation compilation,
IMethodSymbolInternal
method,
IMethodSymbolInternal
topLevelMethod, DiagnosticBag diagnostics)
317
var
peMethod = GetMethodSymbol(methodHandle);
415
internal MethodInstrumentation GetMethodBodyInstrumentations(
IMethodSymbolInternal
method)
420
private void ReportMissingStateMachineAttribute(DiagnosticBag diagnostics,
IMethodSymbolInternal
method, string stateMachineAttributeFullName)
441
IMethodSymbolInternal
method,
460
ImmutableArray<DebugId> getLambdaStructClosureIdsFromMetadata(
IMethodSymbolInternal
? lambda, DebugId methodId)
550
var lambdasBuilder = ArrayBuilder<(DebugId id,
IMethodSymbolInternal
symbol)>.GetInstance();
625
lambdasBuilder.Add((parsedEntityId, (
IMethodSymbolInternal
)member));
668
public IEnumerable<(DebugId id,
IMethodSymbolInternal
symbol)> GetDeletedSynthesizedMethods(
IMethodSymbolInternal
oldMethod, ImmutableArray<EncLambdaInfo> currentLambdas)
670
var methodHandle = GetPreviousMethodHandle(oldMethod, out
var
peMethod);
709
IEnumerable<(DebugId id,
IMethodSymbolInternal
symbol)> getDeletedLambdas(
Emit\EditAndContinue\DeletedMethodBody.cs (1)
69
var
hotReloadExceptionCtorDef = context.Module.GetOrCreateHotReloadExceptionConstructorDefinition();
Emit\EditAndContinue\DeletedPEMethodDefinition.cs (2)
18
private readonly
IMethodSymbolInternal
_oldMethod;
21
public DeletedPEMethodDefinition(
IMethodSymbolInternal
oldMethod, ImmutableArray<byte> bodyIL)
Emit\EditAndContinue\DeltaMetadataWriter.cs (2)
548
if (deletedMember is
IMethodSymbolInternal
deletedMethod)
572
void addDeletedClosureMethods(
IMethodSymbolInternal
oldMethod, ImmutableArray<EncLambdaInfo> currentLambdas, ImmutableArray<LambdaRuntimeRudeEditInfo> orderedLambdaRuntimeRudeEdits)
Emit\EditAndContinue\EncMappedMethod.cs (2)
10
internal readonly struct EncMappedMethod(
IMethodSymbolInternal
previousMethod, Func<SyntaxNode, SyntaxNode?>? syntaxMap, Func<SyntaxNode, RuntimeRudeEdit?>? runtimeRudeEdit)
12
public readonly
IMethodSymbolInternal
PreviousMethod = previousMethod;
Emit\EditAndContinue\SymbolChanges.cs (15)
46
public readonly IReadOnlyDictionary<INamedTypeSymbolInternal, ImmutableArray<(
IMethodSymbolInternal
oldMethod,
IMethodSymbolInternal
newMethod)>> UpdatedMethods;
237
if (symbol is
IMethodSymbolInternal
method)
354
out IReadOnlyDictionary<INamedTypeSymbolInternal, ImmutableArray<(
IMethodSymbolInternal
oldMethod,
IMethodSymbolInternal
newMethod)>> updatedMethods)
357
var updatedMethodsBuilder = new Dictionary<INamedTypeSymbolInternal, ArrayBuilder<(
IMethodSymbolInternal
oldMethod,
IMethodSymbolInternal
newMethod)>>();
419
var
newMethod = (
IMethodSymbolInternal
)newMember;
429
var
oldMethod = (
IMethodSymbolInternal
)GetRequiredInternalSymbol(edit.OldSymbol);
433
updatedMethodsPerType = ArrayBuilder<(
IMethodSymbolInternal
,
IMethodSymbolInternal
)>.GetInstance();
437
updatedMethodsPerType.Add((oldMethod.PartialDefinitionPart ?? oldMethod, (
IMethodSymbolInternal
)newMember));
531
IMethodSymbolInternal
method => method.AssociatedSymbol,
MetadataReader\MetadataDecoder.cs (2)
116
where MethodSymbol : class, Symbol,
IMethodSymbolInternal
1621
IMethodSymbolInternal
attributeConstructor,
Symbols\IMethodSymbolInternal.cs (3)
50
IMethodSymbolInternal
? PartialImplementationPart { get; }
51
IMethodSymbolInternal
? PartialDefinitionPart { get; }
65
IMethodSymbolInternal
Construct(params ITypeSymbolInternal[] typeArguments);
Symbols\ISynthesizedMethodBodyImplementationSymbol.cs (1)
16
IMethodSymbolInternal
? Method { get; }
Microsoft.CodeAnalysis.CSharp (40)
Emitter\EditAndContinue\CSharpDefinitionMap.cs (2)
134
protected override
IMethodSymbolInternal
GetMethodSymbol(MethodDefinitionHandle methodHandle)
135
=> (
IMethodSymbolInternal
)_metadataDecoder.GetSymbolForILToken(methodHandle);
Emitter\EditAndContinue\PEDeltaAssemblyBuilder.cs (1)
300
public override
IMethodSymbolInternal
GetOrCreateHotReloadExceptionConstructorDefinition()
Emitter\Model\PEAssemblyBuilder.cs (1)
662
public override
IMethodSymbolInternal
GetOrCreateHotReloadExceptionConstructorDefinition()
Emitter\Model\PENetModuleBuilder.cs (1)
47
public override
IMethodSymbolInternal
GetOrCreateHotReloadExceptionConstructorDefinition()
Lowering\AsyncRewriter\AsyncConstructor.cs (1)
19
IMethodSymbolInternal
ISynthesizedMethodBodyImplementationSymbol.Method
Lowering\ClosureConversion\LambdaCapturedVariable.cs (1)
164
public
IMethodSymbolInternal
Method
Lowering\ClosureConversion\SynthesizedClosureEnvironment.cs (1)
150
IMethodSymbolInternal
ISynthesizedMethodBodyImplementationSymbol.Method => TopLevelMethod;
Lowering\ClosureConversion\SynthesizedClosureEnvironmentConstructor.cs (1)
19
IMethodSymbolInternal
ISynthesizedMethodBodyImplementationSymbol.Method
Lowering\ClosureConversion\SynthesizedClosureMethod.cs (1)
226
IMethodSymbolInternal
? ISynthesizedMethodBodyImplementationSymbol.Method => TopLevelMethod;
Lowering\IteratorRewriter\IteratorConstructor.cs (1)
49
IMethodSymbolInternal
ISynthesizedMethodBodyImplementationSymbol.Method
Lowering\IteratorRewriter\IteratorFinallyMethodSymbol.cs (1)
244
IMethodSymbolInternal
ISynthesizedMethodBodyImplementationSymbol.Method
Lowering\LocalRewriter\DynamicSiteContainer.cs (1)
59
IMethodSymbolInternal
ISynthesizedMethodBodyImplementationSymbol.Method
Lowering\StateMachineRewriter\StateMachineFieldSymbol.cs (1)
78
IMethodSymbolInternal
ISynthesizedMethodBodyImplementationSymbol.Method
Lowering\StateMachineRewriter\StateMachineTypeSymbol.cs (1)
48
IMethodSymbolInternal
ISynthesizedMethodBodyImplementationSymbol.Method
Lowering\StateMachineRewriter\SynthesizedStateMachineMethod.cs (1)
46
IMethodSymbolInternal
ISynthesizedMethodBodyImplementationSymbol.Method
Lowering\StateMachineRewriter\SynthesizedStateMachineProperty.cs (1)
170
IMethodSymbolInternal
ISynthesizedMethodBodyImplementationSymbol.Method
Symbols\MethodSymbol.cs (22)
1212
bool
IMethodSymbolInternal
.HasDeclarativeSecurity => HasDeclarativeSecurity;
1213
bool
IMethodSymbolInternal
.IsAccessCheckedOnOverride => IsAccessCheckedOnOverride;
1214
bool
IMethodSymbolInternal
.IsExternal => IsExternal;
1215
bool
IMethodSymbolInternal
.IsHiddenBySignature => !HidesBaseMethodsByName;
1216
bool
IMethodSymbolInternal
.IsMetadataNewSlot => IsMetadataNewSlot();
1217
bool
IMethodSymbolInternal
.IsPlatformInvoke => GetDllImportData() != null;
1218
bool
IMethodSymbolInternal
.HasRuntimeSpecialName => HasRuntimeSpecialName;
1219
bool
IMethodSymbolInternal
.IsMetadataFinal => IsSealed;
1220
bool
IMethodSymbolInternal
.HasSpecialName => HasSpecialName;
1221
bool
IMethodSymbolInternal
.RequiresSecurityObject => RequiresSecurityObject;
1222
MethodImplAttributes
IMethodSymbolInternal
.ImplementationAttributes => ImplementationAttributes;
1223
bool
IMethodSymbolInternal
.IsIterator => IsIterator;
1224
ISymbolInternal
IMethodSymbolInternal
.AssociatedSymbol => AssociatedSymbol;
1225
IMethodSymbolInternal
IMethodSymbolInternal
.PartialImplementationPart => PartialImplementationPart;
1226
IMethodSymbolInternal
IMethodSymbolInternal
.PartialDefinitionPart => PartialDefinitionPart;
1234
int
IMethodSymbolInternal
.ParameterCount => ParameterCount;
1236
ImmutableArray<IParameterSymbolInternal>
IMethodSymbolInternal
.Parameters => Parameters.Cast<ParameterSymbol, IParameterSymbolInternal>();
1238
int
IMethodSymbolInternal
.CalculateLocalSyntaxOffset(int localPosition, SyntaxTree localTree) => CalculateLocalSyntaxOffset(localPosition, localTree);
1240
IMethodSymbolInternal
IMethodSymbolInternal
.Construct(params ITypeSymbolInternal[] typeArguments)
Symbols\Synthesized\SynthesizedLambdaCacheFieldSymbol.cs (1)
30
IMethodSymbolInternal
ISynthesizedMethodBodyImplementationSymbol.Method => _topLevelMethod;
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (2)
Emit\EditAndContinue\EditAndContinueClosureTests.cs (2)
518
var
localFunction0 = testData0.GetMethodData("C.<F>g__x|0_0").Method;
521
var
localFunction1 = diff1.TestData.GetMethodData("C.<F>g__x|0_0").Method;
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
CSharpTestBase.cs (1)
2445
private static string? GetContainingTypeMetadataName(
IMethodSymbolInternal
method)
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (3)
FrameDecoder.cs (1)
28
where TMethodSymbol : class,
IMethodSymbolInternal
InstructionDecoder.cs (1)
15
where TMethodSymbol : class,
IMethodSymbolInternal
LanguageInstructionDecoder.cs (1)
19
where TMethodSymbol : class,
IMethodSymbolInternal
Microsoft.CodeAnalysis.Test.Utilities (2)
Compilation\CompilationTestDataExtensions.cs (1)
43
internal static ImmutableArray<KeyValuePair<
IMethodSymbolInternal
, CompilationTestData.MethodData>> GetExplicitlyDeclaredMethods(this CompilationTestData data)
CompilationVerifier.cs (1)
763
var
method = methodData.Method.PartialDefinitionPart ?? methodData.Method;