Пример #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 + ";");
 }