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