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);
408
internal Cci.IMethodBody? GetMethodBody(
IMethodSymbolInternal
methodSymbol)
425
public void SetMethodBody(
IMethodSymbolInternal
methodSymbol, Cci.IMethodBody body)
435
internal void SetPEEntryPoint(
IMethodSymbolInternal
method, DiagnosticBag diagnostics)
443
internal void SetDebugEntryPoint(
IMethodSymbolInternal
method, DiagnosticBag diagnostics)
450
private bool IsSourceDefinition(
IMethodSymbolInternal
method)
662
where TMethodSymbol : class,
IMethodSymbolInternal
811
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)
175
private MethodDefinitionHandle GetPreviousMethodHandle(
IMethodSymbolInternal
oldProperty, out
IMethodSymbolInternal
? peMethod)
186
peMethod = (
IMethodSymbolInternal
?)PreviousSourceToMetadataSymbolMatcher.MapDefinition(oldMethodDef)?.GetInternalSymbol();
266
protected abstract
IMethodSymbolInternal
GetMethodSymbol(MethodDefinitionHandle methodHandle);
268
internal VariableSlotAllocator? TryCreateVariableSlotAllocator(Compilation compilation,
IMethodSymbolInternal
method,
IMethodSymbolInternal
topLevelMethod, DiagnosticBag diagnostics)
375
var
peMethod = GetMethodSymbol(methodHandle);
473
internal MethodInstrumentation GetMethodBodyInstrumentations(
IMethodSymbolInternal
method)
478
private void ReportMissingStateMachineAttribute(DiagnosticBag diagnostics,
IMethodSymbolInternal
method, string stateMachineAttributeFullName)
499
IMethodSymbolInternal
method,
518
ImmutableArray<DebugId> getLambdaStructClosureIdsFromMetadata(
IMethodSymbolInternal
? lambda, DebugId methodId)
608
var lambdasBuilder = ArrayBuilder<(DebugId id,
IMethodSymbolInternal
symbol)>.GetInstance();
683
lambdasBuilder.Add((parsedEntityId, (
IMethodSymbolInternal
)member));
726
public IEnumerable<(DebugId id,
IMethodSymbolInternal
symbol)> GetDeletedSynthesizedMethods(
IMethodSymbolInternal
oldMethod, ImmutableArray<EncLambdaInfo> currentLambdas)
728
var methodHandle = GetPreviousMethodHandle(oldMethod, out
var
peMethod);
767
IEnumerable<(DebugId id,
IMethodSymbolInternal
symbol)> getDeletedLambdas(
Emit\EditAndContinue\DeletedMethodBody.cs (1)
69
var
hotReloadExceptionCtorDef = context.Module.GetOrCreateHotReloadExceptionConstructorDefinition();
Emit\EditAndContinue\DeletedPEMethodDefinition.cs (2)
19
private readonly
IMethodSymbolInternal
_oldMethod;
22
public DeletedPEMethodDefinition(
IMethodSymbolInternal
oldMethod, ImmutableArray<byte> bodyIL)
Emit\EditAndContinue\DeltaMetadataWriter.cs (2)
553
if (deletedMember is
IMethodSymbolInternal
deletedMethod)
593
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)
47
public readonly IReadOnlyDictionary<INamedTypeSymbolInternal, ImmutableArray<(
IMethodSymbolInternal
oldMethod,
IMethodSymbolInternal
newMethod)>> UpdatedMethods;
238
if (symbol is
IMethodSymbolInternal
method)
355
out IReadOnlyDictionary<INamedTypeSymbolInternal, ImmutableArray<(
IMethodSymbolInternal
oldMethod,
IMethodSymbolInternal
newMethod)>> updatedMethods)
358
var updatedMethodsBuilder = new Dictionary<INamedTypeSymbolInternal, ArrayBuilder<(
IMethodSymbolInternal
oldMethod,
IMethodSymbolInternal
newMethod)>>();
420
var
newMethod = (
IMethodSymbolInternal
)newMember;
430
var
oldMethod = (
IMethodSymbolInternal
)GetRequiredInternalSymbol(edit.OldSymbol);
434
updatedMethodsPerType = ArrayBuilder<(
IMethodSymbolInternal
,
IMethodSymbolInternal
)>.GetInstance();
438
updatedMethodsPerType.Add((oldMethod.PartialDefinitionPart ?? oldMethod, (
IMethodSymbolInternal
)newMember));
532
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)
277
public override
IMethodSymbolInternal
GetOrCreateHotReloadExceptionConstructorDefinition()
Emitter\Model\PEAssemblyBuilder.cs (1)
700
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)
228
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)
2484
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;