12 references to EmitAsVoidType
System.Linq.Expressions (12)
System\Linq\Expressions\Compiler\LambdaCompiler.ControlFlow.cs (1)
133
if (node.Type != typeof(void) && (flags & CompilationFlags.
EmitAsVoidType
) == 0)
System\Linq\Expressions\Compiler\LambdaCompiler.Expressions.cs (10)
59
Debug.Assert(newValue == CompilationFlags.EmitAsDefaultType || newValue == CompilationFlags.
EmitAsVoidType
);
92
EmitAssign((AssignBinaryExpression)node, CompilationFlags.
EmitAsVoidType
);
95
Emit((BlockExpression)node, UpdateEmitAsTypeFlag(flags, CompilationFlags.
EmitAsVoidType
));
98
EmitThrow((UnaryExpression)node, CompilationFlags.
EmitAsVoidType
);
101
EmitGotoExpression(node, UpdateEmitAsTypeFlag(flags, CompilationFlags.
EmitAsVoidType
));
277
if (emitAs != CompilationFlags.
EmitAsVoidType
)
286
if (emitAs != CompilationFlags.
EmitAsVoidType
)
715
if (emitAs != CompilationFlags.
EmitAsVoidType
)
804
if (emitAs != CompilationFlags.
EmitAsVoidType
)
824
if (emitAs != CompilationFlags.
EmitAsVoidType
)
System\Linq\Expressions\Compiler\LambdaCompiler.Statements.cs (1)
73
if (emitAs == CompilationFlags.
EmitAsVoidType
|| node.Type == typeof(void))