GetExpressionType() public static method

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

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

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