Exemple #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);
     }
 }
Exemple #2
0
        private void writeReturn(DReturn ret)
        {
            string operand = buildExpression(ret.getOperand(0));

            outputLine("return " + operand + ";");
        }
Exemple #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);
     }
 }
Exemple #4
0
 private void writeReturn(DReturn ret)
 {
     string operand = buildExpression(ret.getOperand(0));
     outputLine("return " + operand + ";");
 }