GetExpressionType() public static method

public static GetExpressionType ( Expression node ) : IType
node Boo.Lang.Compiler.Ast.Expression
return IType
示例#1
0
        IType GetExpressionTypeOrEntityType(Node node)
        {
            Expression e = node as Expression;

            return(null != e
                                ? TypeSystemServices.GetExpressionType(e)
                                : TypeSystem.TypeSystemServices.GetType(node));
        }
示例#2
0
        public BinaryExpression CreateAssignment(Expression lhs, Expression rhs)
        {
            BinaryExpression assignment = new BinaryExpression(
                BinaryOperatorType.Assign,
                lhs,
                rhs);

            assignment.ExpressionType = _tss.GetExpressionType(lhs);
            return(assignment);
        }
示例#3
0
 protected IType ArgumentType(Expression e)
 {
     return(TypeSystemServices.GetExpressionType(e));
 }
示例#4
0
 public BinaryExpression CreateAssignment(Expression lhs, Expression rhs)
 {
     return(CreateBoundBinaryExpression(TypeSystemServices.GetExpressionType(lhs), BinaryOperatorType.Assign, lhs, rhs));
 }