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