77 references to IMethodSymbolInternal
Microsoft.CodeAnalysis (77)
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)
37
private readonly ConcurrentDictionary<
IMethodSymbolInternal
, Cci.IMethodBody> _methodBodyMap;
66
_methodBodyMap = new ConcurrentDictionary<
IMethodSymbolInternal
, Cci.IMethodBody>(ReferenceEqualityComparer.Instance);
96
public abstract
IMethodSymbolInternal
GetOrCreateHotReloadExceptionConstructorDefinition();
123
internal abstract Cci.IMethodReference Translate(
IMethodSymbolInternal
symbol, DiagnosticBag diagnostics, bool needDeclaration);
327
internal Cci.IMethodBody? GetMethodBody(
IMethodSymbolInternal
methodSymbol)
344
public void SetMethodBody(
IMethodSymbolInternal
methodSymbol, Cci.IMethodBody body)
354
internal void SetPEEntryPoint(
IMethodSymbolInternal
method, DiagnosticBag diagnostics)
362
internal void SetDebugEntryPoint(
IMethodSymbolInternal
method, DiagnosticBag diagnostics)
369
private bool IsSourceDefinition(
IMethodSymbolInternal
method)
585
where TMethodSymbol : class,
IMethodSymbolInternal
735
internal sealed override Cci.IMethodReference Translate(
IMethodSymbolInternal
symbol, DiagnosticBag diagnostics, bool needDeclaration)
Emit\EditAndContinue\DefinitionMap.cs (29)
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)
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)
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)
536
if (deletedMember is
IMethodSymbolInternal
deletedMethod)
560
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; }