21 references to New
Microsoft.CodeAnalysis.CSharp (21)
Emitter\Model\SynthesizedPrivateImplementationDetailsStaticConstructor.cs (1)
64factory.New(
Lowering\AsyncRewriter\AsyncRewriter.AsyncIteratorRewriter.cs (4)
207F.New(stateMachineType.Constructor.AsMember(frameType), F.Literal(initialState)))); 346thenClause: F.Return(F.New(valueTaskT_ctorValue, F.Call(F.Field(F.This(), _promiseOfValueOrEndField), promise_GetResult, versionLocal)))); 351var returnStatement = F.Return(F.New(valueTaskT_ctor, F.This(), versionLocal)); 456var returnStatement = F.Return(F.New(valueTask_ctor, F.This(), F.Call(F.InstanceField(_promiseOfValueOrEndField), promise_get_Version)));
Lowering\AsyncRewriter\AsyncRewriter.cs (1)
210F.New(frameType.InstanceConstructors[0])));
Lowering\ClosureConversion\ClosureConversion.cs (1)
561F.New(frame.Constructor)),
Lowering\IteratorRewriter\IteratorRewriter.cs (1)
309F.New(stateMachineType.Constructor.AsMember(frameType), F.Literal(initialState))));
Lowering\LocalRewriter\LocalRewriter.PatternLocalRewriter.cs (1)
317return _factory.New(ctor, _factory.Literal(index), _factory.Literal(false));
Lowering\LocalRewriter\LocalRewriter_CollectionExpression.cs (2)
281return _factory.New(constructor, _factory.Array(elementType.Type, rewrittenElements)); 924return _factory.New(constructor, spreadExpression);
Lowering\LocalRewriter\LocalRewriter_Event.cs (1)
310BoundExpression eventInfo = _factory.New(ctor, _factory.Typeof(node.Event.ContainingType, ctor.Parameters[0].Type), _factory.Literal(node.Event.MetadataName));
Lowering\LocalRewriter\LocalRewriter_ObjectCreationExpression.cs (1)
385newGuid = _factory.New(ctor, _factory.Literal(node.GuidString));
Lowering\LocalRewriter\LocalRewriter_StackAlloc.cs (1)
63constructorCall = _factory.New((MethodSymbol)spanConstructor.SymbolAsMember(spanType), stackAllocNode, countTemp);
Lowering\StateMachineRewriter\ResumableStateMachineStateAllocator.cs (1)
96f.New(
Lowering\StateMachineRewriter\StateMachineRewriter.cs (1)
429BoundStatement makeIterator = F.Assignment(F.Local(resultVariable), F.New(stateMachineType.Constructor, F.Literal(initialState)));
Lowering\SyntheticBoundNodeFactory.cs (1)
734return New(ctor, args);
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListTypeSymbol.cs (2)
663f.Throw(f.New(constructor))), 725return f.Throw(f.New(constructor));
Symbols\Synthesized\Records\SynthesizedRecordClone.cs (1)
127F.CloseMethod(F.Return(F.New(ctor, F.This())));
Symbols\Synthesized\Records\SynthesizedRecordToString.cs (1)
63block.Add(F.Assignment(builderLocal, F.New(stringBuilderCtor)));