Ejemplo n.º 1
0
    public void visit(ExprNode_Call node)
    {
        var funcName = (node.FuncExpr as ExprNode_ID).Name;

        if (node.ParamExprs != null)
        {
            foreach (var expr in node.ParamExprs)
            {
                new ExprNodeVisitor_CodeEmitor(m_stmt, typeof(object), expr);
            }
        }
        m_stmt.ILGenerator.Emit(OpCodes.Call, m_stmt.Emitor.FuncName2MethodInfo[funcName]);
        m_currentType = typeof(object);
    }
Ejemplo n.º 2
0
 public void visit(ExprNode_Call node)
 {
     var funcName = (node.FuncExpr as ExprNode_ID).Name;
     if (node.ParamExprs != null) {
         foreach (var expr in node.ParamExprs) {
             new ExprNodeVisitor_CodeEmitor(m_stmt, typeof(object), expr);
         }
     }
     m_stmt.ILGenerator.Emit(OpCodes.Call, m_stmt.Emitor.FuncName2MethodInfo[funcName]);
     m_currentType = typeof(object);
 }
Ejemplo n.º 3
0
 public StmtNode_Call(int line, ExprNode_Call callExpr)
     : base(line)
 {
     CallExpr = callExpr;
 }
Ejemplo n.º 4
0
 public StmtNode_Call(int line, ExprNode_Call callExpr) : base(line)
 {
     CallExpr = callExpr;
 }