1 write to Type
System.Linq.Expressions (1)
System\Linq\Expressions\LabelTarget.cs (1)
15Type = type;
22 references to Type
System.Linq.Expressions (21)
System\Dynamic\DynamicMetaObjectBinder.cs (4)
67if (returnLabel.Type != typeof(void) && 68!TypeUtils.AreReferenceAssignable(returnLabel.Type, expectedResult)) 70throw System.Linq.Expressions.Error.BinderNotCompatibleWithCallSite(expectedResult, this, returnLabel.Type); 77expectedResult = returnLabel.Type;
System\Linq\Expressions\Compiler\LabelInfo.cs (3)
153if (_node != null && _node.Type != typeof(void)) 286if (_node != null && _node.Type != typeof(void)) 288_value = _ilg.DeclareLocal(_node.Type);
System\Linq\Expressions\Compiler\LambdaCompiler.ControlFlow.cs (3)
79if (node.Target.Type == typeof(void)) 111if (node.Target.Type == typeof(void)) 258_labelInfo.Add(label, new LabelInfo(_ilg, label, TypeUtils.AreReferenceAssignable(lambda.ReturnType, label.Type)));
System\Linq\Expressions\GotoExpression.cs (2)
344if (target.Type != typeof(void)) throw Error.LabelMustBeVoidOrHaveExpression(nameof(target)); 353ValidateGotoType(target.Type, ref value, valueParameter);
System\Linq\Expressions\Interpreter\LabelInfo.cs (1)
113if (_node != null && _node.Type != typeof(void))
System\Linq\Expressions\Interpreter\LightCompiler.cs (2)
1751if (node.Target.Type == typeof(void)) 1777node.Target.Type != typeof(void));
System\Linq\Expressions\LabelExpression.cs (1)
27public sealed override Type Type => Target.Type;
System\Linq\Expressions\LoopExpression.cs (2)
26public sealed override Type Type => BreakLabel == null ? typeof(void) : BreakLabel.Type; 110if (@continue != null && @continue.Type != typeof(void)) throw Error.LabelTypeMustBeVoid(nameof(@continue));
System\Runtime\CompilerServices\CallSite.cs (2)
394vars.UncheckedAdd(result = Expression.Variable(@return.Type, "result")); 648body.UncheckedAdd(Expression.Default(@return.Type));
System\Runtime\CompilerServices\CallSiteBinder.cs (1)
182Expression.Default(signature.ReturnLabel.Type),
System.Linq.Queryable (1)
System\Linq\EnumerableRewriter.cs (1)
429Type type = node!.Type;