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