示例#1
0
 public override void visit(DReturn ret)
 {
     if (graph_.function != null)
     {
         DNode    input = ret.getOperand(0);
         TypeUnit tu    = TypeUnit.FromTag(graph_.function.returnType);
         input.typeSet.addType(tu);
     }
 }
示例#2
0
        private void writeReturn(DReturn ret)
        {
            string operand = buildExpression(ret.getOperand(0));

            outputLine("return " + operand + ";");
        }
示例#3
0
 public override void visit(DReturn ret)
 {
     if (graph_.function != null)
     {
         DNode input = ret.getOperand(0);
         TypeUnit tu = TypeUnit.FromTag(graph_.function.returnType);
         input.typeSet.addType(tu);
     }
 }
示例#4
0
 private void writeReturn(DReturn ret)
 {
     string operand = buildExpression(ret.getOperand(0));
     outputLine("return " + operand + ";");
 }