4 instantiations of TypeCompilationState
Microsoft.CodeAnalysis.CSharp (4)
Compiler\MethodCompiler.cs (4)
276new TypeCompilationState(synthesizedEntryPoint.ContainingType, compilation, moduleBeingBuilt), 450var compilationState = new TypeCompilationState(containingType, _compilation, _moduleBeingBuiltOpt); 669var compilationState = new TypeCompilationState(null, _compilation, _moduleBeingBuiltOpt); 688var compilationState = new TypeCompilationState(additionalType, _compilation, _moduleBeingBuiltOpt);
99 references to TypeCompilationState
Microsoft.CodeAnalysis.CSharp (99)
Binder\InMethodBinder.cs (1)
30/// This map is used by <see cref="MethodCompiler.BindMethodBody(MethodSymbol, TypeCompilationState, BindingDiagnosticBag, bool, BoundNode?, bool, out ImportChain?, out bool, out bool, out MethodBodySemanticModel.InitialState)"/>
Compiler\AnonymousTypeMethodBodySynthesizer.cs (5)
19internal override void GenerateMethodBody(TypeCompilationState compilationState, BindingDiagnosticBag diagnostics) 78internal override void GenerateMethodBody(TypeCompilationState compilationState, BindingDiagnosticBag diagnostics) 98internal override void GenerateMethodBody(TypeCompilationState compilationState, BindingDiagnosticBag diagnostics) 160internal override void GenerateMethodBody(TypeCompilationState compilationState, BindingDiagnosticBag diagnostics) 223internal override void GenerateMethodBody(TypeCompilationState compilationState, BindingDiagnosticBag diagnostics)
Compiler\MethodBodySynthesizer.Lowered.cs (5)
48internal override void GenerateMethodBody(TypeCompilationState compilationState, BindingDiagnosticBag diagnostics) 139internal override void GenerateMethodBody(TypeCompilationState compilationState, BindingDiagnosticBag diagnostics) 240internal override void GenerateMethodBody(TypeCompilationState compilationState, BindingDiagnosticBag diagnostics) 278internal override void GenerateMethodBody(TypeCompilationState compilationState, BindingDiagnosticBag diagnostics) 317internal override void GenerateMethodBody(TypeCompilationState compilationState, BindingDiagnosticBag diagnostics)
Compiler\MethodCompiler.cs (19)
29internal sealed class MethodCompiler : CSharpSymbolVisitor<TypeCompilationState, object> 364public override object VisitNamespace(NamespaceSymbol symbol, TypeCompilationState arg) 410public override object VisitNamedType(NamedTypeSymbol symbol, TypeCompilationState arg) 450var compilationState = new TypeCompilationState(containingType, _compilation, _moduleBeingBuiltOpt); 669var compilationState = new TypeCompilationState(null, _compilation, _moduleBeingBuiltOpt); 688var compilationState = new TypeCompilationState(additionalType, _compilation, _moduleBeingBuiltOpt); 703private void CompileSynthesizedMethods(TypeCompilationState compilationState) 818private void CompileSynthesizedExplicitImplementations(SourceMemberContainerTypeSymbol sourceTypeSymbol, TypeCompilationState compilationState) 847private void CompileSynthesizedSealedAccessors(SourcePropertySymbolBase sourceProperty, TypeCompilationState compilationState) 865public override object VisitMethod(MethodSymbol symbol, TypeCompilationState arg) 870public override object VisitProperty(PropertySymbol symbol, TypeCompilationState argument) 875public override object VisitEvent(EventSymbol symbol, TypeCompilationState argument) 880public override object VisitField(FieldSymbol symbol, TypeCompilationState argument) 890TypeCompilationState compilationState) 1367TypeCompilationState compilationState, 1717internal static BoundBlock? BindSynthesizedMethodBody(MethodSymbol method, TypeCompilationState compilationState, BindingDiagnosticBag diagnostics) 1735TypeCompilationState compilationState, 2333private static BoundStatement BindImplicitConstructorInitializerIfAny(MethodSymbol method, TypeCompilationState compilationState, BindingDiagnosticBag diagnostics) 2357private static void ReportCtorInitializerCycles(MethodSymbol method, BoundExpression initializerInvocation, TypeCompilationState compilationState, BindingDiagnosticBag diagnostics)
Emitter\Model\SynthesizedPrivateImplementationDetailsStaticConstructor.cs (1)
28internal override void GenerateMethodBody(TypeCompilationState compilationState, BindingDiagnosticBag diagnostics)
FlowAnalysis\FlowAnalysisPass.cs (2)
34TypeCompilationState compilationState, 110private static BoundBlock PrependImplicitInitializations(BoundBlock body, MethodSymbol method, ImmutableArray<FieldSymbol> implicitlyInitializedFields, TypeCompilationState compilationState, BindingDiagnosticBag diagnostics)
Lowering\AsyncRewriter\AsyncExceptionHandlerRewriter.cs (1)
113TypeCompilationState compilationState,
Lowering\AsyncRewriter\AsyncRewriter.AsyncIteratorRewriter.cs (1)
41TypeCompilationState compilationState,
Lowering\AsyncRewriter\AsyncRewriter.cs (2)
30TypeCompilationState compilationState, 47TypeCompilationState compilationState,
Lowering\AsyncRewriter\AsyncStateMachine.cs (1)
25public AsyncStateMachine(VariableSlotAllocator variableAllocatorOpt, TypeCompilationState compilationState, MethodSymbol asyncMethod, int asyncMethodOrdinal, TypeKind typeKind)
Lowering\ClosureConversion\ClosureConversion.Analysis.cs (3)
50private readonly TypeCompilationState _compilationState; 58TypeCompilationState compilationState) 74TypeCompilationState compilationState,
Lowering\ClosureConversion\ClosureConversion.cs (7)
62/// In addition, the rewriting deposits into <see cref="TypeCompilationState.SynthesizedMethods"/> 141/// <see cref="TypeCompilationState.SynthesizedMethods"/> at the end of rewriting. 143private ArrayBuilder<TypeCompilationState.MethodWithBody> _synthesizedMethods; 166TypeCompilationState compilationState, 237TypeCompilationState compilationState, 1608_synthesizedMethods = ArrayBuilder<TypeCompilationState.MethodWithBody>.GetInstance(); 1612new TypeCompilationState.MethodWithBody(
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (2)
100private ExpressionLambdaRewriter(TypeCompilationState compilationState, TypeMap typeMap, SyntaxNode node, int recursionDepth, BindingDiagnosticBag diagnostics) 112internal static BoundNode RewriteLambda(BoundLambda node, TypeCompilationState compilationState, TypeMap typeMap, int recursionDepth, BindingDiagnosticBag diagnostics)
Lowering\ClosureConversion\SynthesizedClosureMethod.cs (2)
34TypeCompilationState compilationState) 113private void EnsureAttributesExist(TypeCompilationState compilationState)
Lowering\IteratorRewriter\IteratorRewriter.cs (2)
36TypeCompilationState compilationState, 55TypeCompilationState compilationState,
Lowering\IteratorRewriter\IteratorStateMachine.cs (1)
26public IteratorStateMachine(VariableSlotAllocator slotAllocatorOpt, TypeCompilationState compilationState, MethodSymbol iteratorMethod, int iteratorMethodOrdinal, bool isEnumerable, TypeWithAnnotations elementType)
Lowering\LocalRewriter\DelegateCacheRewriter.cs (1)
95var typeCompilationState = _factory.CompilationState;
Lowering\LocalRewriter\LocalRewriter.cs (1)
90TypeCompilationState compilationState,
Lowering\MethodToClassRewriter.cs (2)
49protected readonly TypeCompilationState CompilationState; 56protected MethodToClassRewriter(VariableSlotAllocator? slotAllocator, TypeCompilationState compilationState, BindingDiagnosticBag diagnostics)
Lowering\SpillSequenceSpiller.cs (2)
26MethodSymbol method, SyntaxNode syntaxNode, TypeCompilationState compilationState, 232internal static BoundStatement Rewrite(BoundStatement body, MethodSymbol method, TypeCompilationState compilationState, BindingDiagnosticBag diagnostics)
Lowering\StateMachineRewriter\StateMachineRewriter.cs (1)
43TypeCompilationState compilationState,
Lowering\StateMachineRewriter\StateMachineTypeSymbol.cs (2)
21public StateMachineTypeSymbol(VariableSlotAllocator slotAllocatorOpt, TypeCompilationState compilationState, MethodSymbol kickoffMethod, int kickoffMethodOrdinal) 28private static string MakeName(VariableSlotAllocator slotAllocatorOpt, TypeCompilationState compilationState, MethodSymbol kickoffMethod, int kickoffMethodOrdinal)
Lowering\SyntheticBoundNodeFactory.cs (3)
49public TypeCompilationState CompilationState { get; } 103public SyntheticBoundNodeFactory(MethodSymbol topLevelMethod, SyntaxNode node, TypeCompilationState compilationState, BindingDiagnosticBag diagnostics, InstrumentationState? instrumentationState = null) 114public SyntheticBoundNodeFactory(MethodSymbol? topLevelMethodOpt, NamedTypeSymbol? currentClassOpt, SyntaxNode node, TypeCompilationState compilationState, BindingDiagnosticBag diagnostics, InstrumentationState? instrumentationState = null)
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.SynthesizedMethodBase.cs (1)
223protected SyntheticBoundNodeFactory CreateBoundNodeFactory(TypeCompilationState compilationState, BindingDiagnosticBag diagnostics)
Symbols\MethodSymbol.cs (1)
1110internal virtual void GenerateMethodBody(TypeCompilationState compilationState, BindingDiagnosticBag diagnostics)
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListConstructor.cs (1)
22internal override void GenerateMethodBody(TypeCompilationState compilationState, BindingDiagnosticBag diagnostics)
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListEnumeratorConstructor.cs (1)
22internal override void GenerateMethodBody(TypeCompilationState compilationState, BindingDiagnosticBag diagnostics)
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListMethod.cs (1)
21internal override void GenerateMethodBody(TypeCompilationState compilationState, BindingDiagnosticBag diagnostics)
Symbols\Synthesized\Records\SynthesizedRecordBaseEquals.cs (1)
51internal override void GenerateMethodBody(TypeCompilationState compilationState, BindingDiagnosticBag diagnostics)
Symbols\Synthesized\Records\SynthesizedRecordClone.cs (1)
106internal override void GenerateMethodBody(TypeCompilationState compilationState, BindingDiagnosticBag diagnostics)
Symbols\Synthesized\Records\SynthesizedRecordDeconstruct.cs (1)
49internal override void GenerateMethodBody(TypeCompilationState compilationState, BindingDiagnosticBag diagnostics)
Symbols\Synthesized\Records\SynthesizedRecordEqualityContractProperty.cs (1)
172internal override void GenerateMethodBody(TypeCompilationState compilationState, BindingDiagnosticBag diagnostics)
Symbols\Synthesized\Records\SynthesizedRecordEqualityOperator.cs (1)
32internal override void GenerateMethodBody(TypeCompilationState compilationState, BindingDiagnosticBag diagnostics)
Symbols\Synthesized\Records\SynthesizedRecordEqualityOperatorBase.cs (1)
62internal abstract override void GenerateMethodBody(TypeCompilationState compilationState, BindingDiagnosticBag diagnostics);
Symbols\Synthesized\Records\SynthesizedRecordEquals.cs (1)
46internal override void GenerateMethodBody(TypeCompilationState compilationState, BindingDiagnosticBag diagnostics)
Symbols\Synthesized\Records\SynthesizedRecordGetHashCode.cs (1)
40internal override void GenerateMethodBody(TypeCompilationState compilationState, BindingDiagnosticBag diagnostics)
Symbols\Synthesized\Records\SynthesizedRecordInequalityOperator.cs (1)
34internal override void GenerateMethodBody(TypeCompilationState compilationState, BindingDiagnosticBag diagnostics)
Symbols\Synthesized\Records\SynthesizedRecordObjEquals.cs (1)
41internal override void GenerateMethodBody(TypeCompilationState compilationState, BindingDiagnosticBag diagnostics)
Symbols\Synthesized\Records\SynthesizedRecordOrdinaryMethod.cs (1)
94internal abstract override void GenerateMethodBody(TypeCompilationState compilationState, BindingDiagnosticBag diagnostics);
Symbols\Synthesized\Records\SynthesizedRecordPrintMembers.cs (1)
116internal override void GenerateMethodBody(TypeCompilationState compilationState, BindingDiagnosticBag diagnostics)
Symbols\Synthesized\Records\SynthesizedRecordToString.cs (1)
49internal override void GenerateMethodBody(TypeCompilationState compilationState, BindingDiagnosticBag diagnostics)
Symbols\Synthesized\SynthesizedEmbeddedAttributeSymbol.cs (1)
263internal override void GenerateMethodBody(TypeCompilationState compilationState, BindingDiagnosticBag diagnostics)
Symbols\Synthesized\SynthesizedEmbeddedNullableAttributeSymbol.cs (1)
128internal override void GenerateMethodBody(TypeCompilationState compilationState, BindingDiagnosticBag diagnostics)
Symbols\Synthesized\SynthesizedEventAccessorSymbol.cs (1)
123internal override void GenerateMethodBody(TypeCompilationState compilationState, BindingDiagnosticBag diagnostics)
Symbols\Synthesized\SynthesizedGlobalMethodSymbol.cs (1)
344internal abstract override void GenerateMethodBody(TypeCompilationState compilationState, BindingDiagnosticBag diagnostics);
Symbols\Synthesized\SynthesizedHotReloadExceptionConstructorSymbol.cs (1)
36internal override void GenerateMethodBody(TypeCompilationState compilationState, BindingDiagnosticBag diagnostics)
Symbols\Synthesized\SynthesizedInlineArrayAsReadOnlySpanMethod.cs (1)
21internal override void GenerateMethodBody(TypeCompilationState compilationState, BindingDiagnosticBag diagnostics)
Symbols\Synthesized\SynthesizedInlineArrayAsSpanMethod.cs (1)
21internal override void GenerateMethodBody(TypeCompilationState compilationState, BindingDiagnosticBag diagnostics)
Symbols\Synthesized\SynthesizedInlineArrayElementRefMethod.cs (1)
23internal override void GenerateMethodBody(TypeCompilationState compilationState, BindingDiagnosticBag diagnostics)
Symbols\Synthesized\SynthesizedInlineArrayElementRefReadOnlyMethod.cs (1)
23internal override void GenerateMethodBody(TypeCompilationState compilationState, BindingDiagnosticBag diagnostics)
Symbols\Synthesized\SynthesizedInlineArrayFirstElementRefMethod.cs (1)
22internal override void GenerateMethodBody(TypeCompilationState compilationState, BindingDiagnosticBag diagnostics)
Symbols\Synthesized\SynthesizedInlineArrayFirstElementRefReadOnlyMethod.cs (1)
22internal override void GenerateMethodBody(TypeCompilationState compilationState, BindingDiagnosticBag diagnostics)
Symbols\Synthesized\SynthesizedInstanceConstructor.cs (1)
286protected void GenerateMethodBodyCore(TypeCompilationState compilationState, BindingDiagnosticBag diagnostics)
Symbols\Synthesized\SynthesizedParameterlessThrowMethod.cs (1)
24internal override void GenerateMethodBody(TypeCompilationState compilationState, BindingDiagnosticBag diagnostics)
Symbols\Synthesized\SynthesizedThrowSwitchExpressionExceptionMethod.cs (1)
22internal override void GenerateMethodBody(TypeCompilationState compilationState, BindingDiagnosticBag diagnostics)