27 references to Construct
Microsoft.CodeAnalysis.CSharp (27)
Binder\Binder_Conversions.cs (1)
538.Construct([((NamedTypeSymbol)source.Type).TypeArgumentsWithAnnotationsNoUseSiteDiagnostics[0]])
CodeGen\EmitArrayInitializer.cs (1)
622EmitSymbolToken(createSpan.Construct(elementType), wrappedExpression.Syntax, optArgList: null);
CodeGen\EmitStackAllocInitializer.cs (1)
86var createSpanHelperReference = createSpanHelper.Construct(elementType).GetCciAdapter();
CodeGen\EmitStatement.cs (1)
1539var sequenceEqualsCharMethod = sequenceEqualsTMethod.Construct(Binder.GetSpecialType(_module.Compilation, SpecialType.System_Char, syntaxNode, _diagnostics));
Lowering\AsyncRewriter\AsyncMethodToStateMachineRewriter.cs (3)
585_asyncMethodBuilderMemberCollection.AwaitOnCompleted.Construct( 597_asyncMethodBuilderMemberCollection.AwaitUnsafeOnCompleted.Construct( 628_asyncMethodBuilderMemberCollection.AwaitOnCompleted).Construct(loweredAwaiterType, F.This().Type);
Lowering\AsyncRewriter\AsyncRewriter.AsyncIteratorRewriter.cs (1)
385MethodSymbol startMethod = _asyncMethodBuilderMemberCollection.Start.Construct(this.stateMachineType);
Lowering\AsyncRewriter\AsyncRewriter.cs (1)
255var startMethod = methodScopeAsyncMethodBuilderMemberCollection.Start.Construct(frameType);
Lowering\LocalRewriter\LocalRewriter.PatternLocalRewriter.cs (1)
439.Construct(_factory.SpecialType(SpecialType.System_Char));
Lowering\LocalRewriter\LocalRewriter_CollectionExpression.cs (3)
174var toListOfElementType = toListGeneric.Construct([listElementType]); 679var linqToArrayMethod = linqToArrayMethodGeneric.Construct([arrayType.ElementTypeWithAnnotations]); 893asSpanMethod = collectionsMarshalAsSpanMethod.Construct(namedType.TypeArgumentsWithAnnotationsNoUseSiteDiagnostics[0].Type);
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (1)
611createSpan = createSpan.Construct(rewrittenOperand.Type, spanType.TypeArgumentsWithAnnotationsNoUseSiteDiagnostics.Single().Type);
Lowering\LocalRewriter\LocalRewriter_Event.cs (1)
160marshalMethod = marshalMethod.Construct(eventType);
Lowering\LocalRewriter\LocalRewriter_ForEachStatement.cs (1)
785elementRef = elementRef.Construct(inlineArrayType, inlineArrayType.TryGetInlineArrayElementField()!.Type);
Lowering\LocalRewriter\LocalRewriter_IndexerAccess.cs (3)
335return createSpan.Construct(node.Expression.Type, node.Expression.Type.TryGetInlineArrayElementField()!.Type); 362elementRef = elementRef.Construct(node.Expression.Type, node.Expression.Type.TryGetInlineArrayElementField()!.Type); 381elementRef = elementRef.Construct(node.Expression.Type, node.Expression.Type.TryGetInlineArrayElementField()!.Type);
Symbols\MethodSymbol.cs (1)
1238return Construct((TypeSymbol[])typeArguments);
Symbols\Synthesized\SynthesizedInlineArrayAsReadOnlySpanMethod.cs (2)
31f.WellKnownMethod(WellKnownMember.System_Runtime_InteropServices_MemoryMarshal__CreateReadOnlySpan).Construct(TypeParameters[1]), 35f.WellKnownMethod(WellKnownMember.System_Runtime_CompilerServices_Unsafe__AsRef_T).Construct(TypeParameters[0]),
Symbols\Synthesized\SynthesizedInlineArrayAsSpanMethod.cs (1)
31f.WellKnownMethod(WellKnownMember.System_Runtime_InteropServices_MemoryMarshal__CreateSpan).Construct(TypeParameters[1]),
Symbols\Synthesized\SynthesizedInlineArrayElementRefMethod.cs (1)
33f.WellKnownMethod(WellKnownMember.System_Runtime_CompilerServices_Unsafe__Add_T).Construct(TypeParameters[1]),
Symbols\Synthesized\SynthesizedInlineArrayElementRefReadOnlyMethod.cs (2)
33f.WellKnownMethod(WellKnownMember.System_Runtime_CompilerServices_Unsafe__Add_T).Construct(TypeParameters[1]), 37f.WellKnownMethod(WellKnownMember.System_Runtime_CompilerServices_Unsafe__AsRef_T).Construct(TypeParameters[0]),
Symbols\Synthesized\SynthesizedInlineArrayFirstElementRefReadOnlyMethod.cs (1)
34f.WellKnownMethod(WellKnownMember.System_Runtime_CompilerServices_Unsafe__AsRef_T).Construct(TypeParameters[0]),