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