1 type derived from NewExpression
System.Core (1)
Microsoft\Scripting\Ast\NewExpression.cs (1)
123
internal class NewValueTypeExpression :
NewExpression
{
3 instantiations of NewExpression
System.Core (3)
Microsoft\Scripting\Ast\NewExpression.cs (2)
172
return new
NewExpression
(constructor, argList, null);
188
return new
NewExpression
(constructor, argList, memberList);
Microsoft\Scripting\Compiler\StackSpiller.cs (1)
514
return cr.Finish(cr.Rewrite ? new
NewExpression
(node.Constructor, cr[0, -1], node.Members) : expr);
129 references to NewExpression
System.Activities (16)
Microsoft\VisualBasic\Activities\VisualBasicDesignerHelper.cs (2)
582
NewExpression
newExpression = (
NewExpression
)expression;
Microsoft\VisualBasic\Activities\VisualBasicHelper.cs (6)
667
NewExpression
newExpression;
794
newExpression = (
NewExpression
)Rewrite(listInit.NewExpression, lambdaParameters, out abort);
903
newExpression = (
NewExpression
)Rewrite(memberInit.NewExpression, lambdaParameters, out abort);
1023
newExpression = (
NewExpression
)expression;
1290
NewExpression
newExpression = (
NewExpression
)expression;
System\Activities\Expressions\ExpressionServices.cs (3)
120
NewExpression
newExpression = body as
NewExpression
;
1403
static string TryConvertNewExpression<TResult>(
NewExpression
newExpression, bool throwOnError, out Activity<TResult> result)
System\Activities\Expressions\MethodCallExpressionHelper.cs (1)
183
NewExpression
newExpression;
System\Activities\ExpressionUtilities.cs (4)
997
(
NewExpression
)other,
1031
(
NewExpression
)other,
1101
NewExpression
objectCreationExpression = (
NewExpression
)expression;
System.Core (60)
Microsoft\Scripting\Ast\DebugViewWriter.cs (1)
800
protected internal override Expression VisitNew(
NewExpression
node) {
Microsoft\Scripting\Ast\Expression.DebuggerProxy.cs (4)
249
public
NewExpression
NewExpression { get { return _node.NewExpression; } }
295
public
NewExpression
NewExpression { get { return _node.NewExpression; } }
331
private readonly
NewExpression
_node;
333
public NewExpressionProxy(
NewExpression
node) {
Microsoft\Scripting\Ast\ExpressionStringBuilder.cs (1)
577
protected internal override Expression VisitNew(
NewExpression
node) {
Microsoft\Scripting\Ast\ExpressionVisitor.cs (2)
434
/// Visits the children of the <see cref="
NewExpression
" />.
440
protected internal virtual Expression VisitNew(
NewExpression
node) {
Microsoft\Scripting\Ast\ListInitExpression.cs (16)
44
private readonly
NewExpression
_newExpression;
47
internal ListInitExpression(
NewExpression
newExpression, ReadOnlyCollection<ElementInit> initializers) {
80
public
NewExpression
NewExpression {
117
public ListInitExpression Update(
NewExpression
newExpression, IEnumerable<ElementInit> initializers) {
130
/// <param name="newExpression">A <see cref="
NewExpression
"/> to set the <see cref="P:ListInitExpression.NewExpression"/> property equal to.</param>
133
public static ListInitExpression ListInit(
NewExpression
newExpression, params Expression[] initializers) {
142
/// <param name="newExpression">A <see cref="
NewExpression
"/> to set the <see cref="P:ListInitExpression.NewExpression"/> property equal to.</param>
145
public static ListInitExpression ListInit(
NewExpression
newExpression, IEnumerable<Expression> initializers) {
161
/// <param name="newExpression">A <see cref="
NewExpression
"/> to set the <see cref="P:ListInitExpression.NewExpression"/> property equal to.</param>
165
public static ListInitExpression ListInit(
NewExpression
newExpression, MethodInfo addMethod, params Expression[] initializers) {
177
/// <param name="newExpression">A <see cref="
NewExpression
"/> to set the <see cref="P:ListInitExpression.NewExpression"/> property equal to.</param>
181
public static ListInitExpression ListInit(
NewExpression
newExpression, MethodInfo addMethod, IEnumerable<Expression> initializers) {
202
/// <param name="newExpression">A <see cref="
NewExpression
"/> to set the <see cref="P:ListInitExpression.NewExpression"/> property equal to.</param>
212
public static ListInitExpression ListInit(
NewExpression
newExpression, params ElementInit[] initializers) {
219
/// <param name="newExpression">A <see cref="
NewExpression
"/> to set the <see cref="P:ListInitExpression.NewExpression"/> property equal to.</param>
226
public static ListInitExpression ListInit(
NewExpression
newExpression, IEnumerable<ElementInit> initializers) {
Microsoft\Scripting\Ast\MemberInitExpression.cs (6)
35
private readonly
NewExpression
_newExpression;
38
internal MemberInitExpression(
NewExpression
newExpression, ReadOnlyCollection<MemberBinding> bindings) {
71
public
NewExpression
NewExpression {
145
public MemberInitExpression Update(
NewExpression
newExpression, IEnumerable<MemberBinding> bindings) {
161
public static MemberInitExpression MemberInit(
NewExpression
newExpression, params MemberBinding[] bindings) {
172
public static MemberInitExpression MemberInit(
NewExpression
newExpression, IEnumerable<MemberBinding> bindings) {
Microsoft\Scripting\Ast\NewExpression.cs (19)
112
public
NewExpression
Update(IEnumerable<Expression> arguments) {
139
/// Creates a new <see cref="
NewExpression
"/> that represents calling the specified constructor that takes no arguments.
142
/// <returns>A <see cref="
NewExpression
"/> that has the <see cref="NodeType"/> property equal to <see cref="P:New"/> and the <see cref="P:Constructor"/> property set to the specified value.</returns>
143
public static
NewExpression
New(ConstructorInfo constructor) {
149
/// Creates a new <see cref="
NewExpression
"/> that represents calling the specified constructor that takes no arguments.
153
/// <returns>A <see cref="
NewExpression
"/> that has the <see cref="NodeType"/> property equal to <see cref="P:New"/> and the <see cref="P:Constructor"/> and <see cref="P:Arguments"/> properties set to the specified value.</returns>
154
public static
NewExpression
New(ConstructorInfo constructor, params Expression[] arguments) {
160
/// Creates a new <see cref="
NewExpression
"/> that represents calling the specified constructor that takes no arguments.
164
/// <returns>A <see cref="
NewExpression
"/> that has the <see cref="NodeType"/> property equal to <see cref="P:New"/> and the <see cref="P:Constructor"/> and <see cref="P:Arguments"/> properties set to the specified value.</returns>
165
public static
NewExpression
New(ConstructorInfo constructor, IEnumerable<Expression> arguments) {
177
/// Creates a new <see cref="
NewExpression
"/> that represents calling the specified constructor with the specified arguments. The members that access the constructor initialized fields are specified.
182
/// <returns>A <see cref="
NewExpression
"/> that has the <see cref="NodeType"/> property equal to <see cref="P:New"/> and the <see cref="P:Constructor"/>, <see cref="P:Arguments"/> and <see cref="P:Members"/> properties set to the specified value.</returns>
183
public static
NewExpression
New(ConstructorInfo constructor, IEnumerable<Expression> arguments, IEnumerable<MemberInfo> members) {
193
/// Creates a new <see cref="
NewExpression
"/> that represents calling the specified constructor with the specified arguments. The members that access the constructor initialized fields are specified.
198
/// <returns>A <see cref="
NewExpression
"/> that has the <see cref="NodeType"/> property equal to <see cref="P:New"/> and the <see cref="P:Constructor"/>, <see cref="P:Arguments"/> and <see cref="P:Members"/> properties set to the specified value.</returns>
199
public static
NewExpression
New(ConstructorInfo constructor, IEnumerable<Expression> arguments, params MemberInfo[] members) {
205
/// Creates a <see cref="
NewExpression
"/> that represents calling the parameterless constructor of the specified type.
208
/// <returns>A <see cref="
NewExpression
"/> that has the <see cref="NodeType"/> property equal to New and the Constructor property set to the ConstructorInfo that represents the parameterless constructor of the specified type.</returns>
209
public static
NewExpression
New(Type type) {
Microsoft\Scripting\Compiler\LambdaCompiler.Expressions.cs (2)
515
NewExpression
node = (
NewExpression
)expr;
Microsoft\Scripting\Compiler\StackSpiller.cs (4)
503
NewExpression
node = (
NewExpression
)expr;
612
expr = Expression.ListInit((
NewExpression
)rewrittenNew, new TrueReadOnlyCollection<ElementInit>(newInits));
663
expr = Expression.MemberInit((
NewExpression
)rewrittenNew, new TrueReadOnlyCollection<MemberBinding>(newBindings));
System\Linq\Expressions\ExpressionVisitor.cs (5)
72
return this.VisitNew((
NewExpression
)exp);
270
internal virtual
NewExpression
VisitNew(
NewExpression
nex) {
282
NewExpression
n = this.VisitNew(init.NewExpression);
291
NewExpression
n = this.VisitNew(init.NewExpression);
System.Data.Entity (17)
System\Data\Common\Internal\Materialization\CoordinatorScratchpad.cs (2)
330
var
nex = exp as
NewExpression
;
System\Data\Objects\ELinq\EntityExpressionVisitor.cs (5)
81
return this.VisitNew((
NewExpression
)exp);
316
internal virtual
NewExpression
VisitNew(
NewExpression
nex)
331
NewExpression
n = this.VisitNew(init.NewExpression);
342
NewExpression
n = this.VisitNew(init.NewExpression);
System\Data\Objects\ELinq\InitializerFacet.cs (5)
74
internal static InitializerMetadata CreateProjectionInitializer(EdmItemCollection itemCollection,
NewExpression
newExpression)
80
internal static InitializerMetadata CreateEmptyProjectionInitializer(EdmItemCollection itemCollection,
NewExpression
newExpression)
254
internal ProjectionNewMetadata(
NewExpression
newExpression)
261
private readonly
NewExpression
_newExpression;
332
internal EmptyProjectionNewMetadata(
NewExpression
newExpression)
System\Data\Objects\ELinq\MethodCallTranslator.cs (2)
293
var
newExpression = (
NewExpression
)selectorLambda.Body;
System\Data\Objects\ELinq\Translator.cs (2)
705
: TypedTranslator<
NewExpression
>
709
protected override DbExpression TypedTranslate(ExpressionConverter parent,
NewExpression
linq)
System\Data\Query\InternalTrees\ColumnMapFactory.cs (1)
191
NewExpression
newExpr = null == constructor ? Expression.New(type) : Expression.New(constructor);
System.Data.Linq (8)
SqlClient\Query\Funcletizer.cs (5)
199
return this.VisitNew((
NewExpression
)exp);
392
internal virtual
NewExpression
VisitNew(
NewExpression
nex) {
406
NewExpression
n = this.VisitNew(init.NewExpression);
415
NewExpression
n = this.VisitNew(init.NewExpression);
SqlClient\Query\QueryConverter.cs (3)
156
return this.VisitNew((
NewExpression
)node);
821
private SqlExpression VisitNew(
NewExpression
qn) {
856
NewExpression
qn = init.NewExpression;
System.Data.Services (5)
parent\Client\System\Data\Services\Client\ALinq\ALinqExpressionVisitor.cs (5)
160
return this.VisitNew((
NewExpression
)exp);
519
internal virtual
NewExpression
VisitNew(
NewExpression
nex)
544
NewExpression
n = this.VisitNew(init.NewExpression);
561
NewExpression
n = this.VisitNew(init.NewExpression);
System.Data.Services.Client (22)
System\Data\Services\Client\ALinq\ALinqExpressionVisitor.cs (5)
160
return this.VisitNew((
NewExpression
)exp);
519
internal virtual
NewExpression
VisitNew(
NewExpression
nex)
544
NewExpression
n = this.VisitNew(init.NewExpression);
561
NewExpression
n = this.VisitNew(init.NewExpression);
System\Data\Services\Client\ALinq\ExpressionWriter.cs (2)
120
internal override
NewExpression
VisitNew(
NewExpression
nex)
System\Data\Services\Client\ALinq\ProjectionAnalyzer.cs (4)
464
internal override
NewExpression
VisitNew(
NewExpression
nex)
699
internal override
NewExpression
VisitNew(
NewExpression
nex)
System\Data\Services\Client\ALinq\ResourceBinder.cs (4)
1715
NewExpression
ne = (
NewExpression
)resultSelector.Body;
1886
return MatchResource(source, out resource) && (e.Body is
NewExpression
);
2060
internal static bool MatchNewDataServiceCollectionOfT(
NewExpression
nex)
System\Data\Services\Client\ALinq\UriWriter.cs (2)
167
internal override
NewExpression
VisitNew(
NewExpression
nex)
System\Data\Services\Client\ProjectionPlanCompiler.cs (5)
325
internal override
NewExpression
VisitNew(
NewExpression
nex)
831
private
NewExpression
RebindNewExpressionForDataServiceCollectionOfT(
NewExpression
nex)
838
NewExpression
result = base.VisitNew(nex);
System.IdentityModel (1)
System\IdentityModel\CryptoHelper.cs (1)
1283
System.Linq.Expressions.
NewExpression
algorithmCreationExpression = System.Linq.Expressions.Expression.New(algorithmType);