21 references to Type
System.Core (21)
Microsoft\Scripting\Actions\CallSite.cs (5)
387if (@return.Type != typeof(void)) { 388vars.Add(result = Expression.Variable(@return.Type, "result")); 457if (@return.Type == typeof(void)) { 582if (@return.Type == typeof(void)) { 710body.Add(Expression.Default(@return.Type));
Microsoft\Scripting\Actions\CallSiteBinder.cs (1)
196Expression.Default(signature.ReturnLabel.Type),
Microsoft\Scripting\Actions\DynamicMetaObjectBinder.cs (4)
94if (returnLabel.Type != typeof(void) && 95!TypeUtils.AreReferenceAssignable(returnLabel.Type, expectedResult)) { 96throw Error.BinderNotCompatibleWithCallSite(expectedResult, this, returnLabel.Type); 101expectedResult = returnLabel.Type;
Microsoft\Scripting\Ast\GotoExpression.cs (2)
357if (target.Type != typeof(void)) throw Error.LabelMustBeVoidOrHaveExpression(); 359ValidateGotoType(target.Type, ref value, valueParameter);
Microsoft\Scripting\Ast\LabelExpression.cs (1)
47get { return _target.Type; }
Microsoft\Scripting\Ast\LoopExpression.cs (2)
51get { return _break == null ? typeof(void) : _break.Type; } 137if (@continue != null && @continue.Type != typeof(void)) throw Error.LabelTypeMustBeVoid();
Microsoft\Scripting\Compiler\LabelInfo.cs (3)
162if (_node != null && _node.Type != typeof(void)) { 268if (_node != null && _node.Type != typeof(void)) { 269_value = _ilg.DeclareLocal(_node.Type);
Microsoft\Scripting\Compiler\LambdaCompiler.ControlFlow.cs (3)
88if (node.Target.Type == typeof(void)) { 114if (node.Target.Type == typeof(void)) { 239_labelInfo.Add(label, new LabelInfo(_ilg, label, TypeUtils.AreReferenceAssignable(lambda.ReturnType, label.Type)));