8 references to New
Microsoft.CodeAnalysis.CSharp (8)
Lowering\LocalRewriter\LocalRewriter_CollectionExpression.cs (3)
1071
rewrittenReceiver = _factory.
New
(constructor, ImmutableArray.Create<BoundExpression>(knownLengthTemp));
1076
rewrittenReceiver = _factory.
New
(constructor, ImmutableArray.Create(knownLengthExpression));
1083
rewrittenReceiver = _factory.
New
(constructor, ImmutableArray<BoundExpression>.Empty);
Lowering\LocalRewriter\LocalRewriter_Range.cs (1)
175
return F.
New
(constructionMethod, ImmutableArray.Create(left, right));
Lowering\SyntheticBoundNodeFactory.cs (2)
738
=>
New
(ctor, args.ToImmutableArray());
743
return
New
(ctor, args);
Symbols\Synthesized\SynthesizedParameterlessThrowMethod.cs (1)
33
var body = F.Throw(F.
New
(_exceptionConstructor, ImmutableArray<BoundExpression>.Empty));
Symbols\Synthesized\SynthesizedThrowSwitchExpressionExceptionMethod.cs (1)
34
var body = F.Throw(F.
New
(F.WellKnownMethod(WellKnownMember.System_Runtime_CompilerServices_SwitchExpressionException__ctorObject), ImmutableArray.Create<BoundExpression>(F.Parameter(unmatchedValue))));