Package sizzle.types

Examples of sizzle.types.SizzleType.toJavaType()


    final StringTemplate st = this.stg.getInstanceOf("VarDecl");

    st.setAttribute("id", n.f0.f0.tokenImage);

    // TODO: make templates for types
    st.setAttribute("type", type.toJavaType());

    if (n.f3.present()) {
      final NodeChoice nodeChoice = (NodeChoice) n.f3.node;

      switch (nodeChoice.which) {
View Full Code Here


          t = this.typechecker.visit((ExprList) nodeChoice.choice, argu.cloneNonLocals());
        } catch (final IOException e) {
          throw new RuntimeException(e.getClass().getSimpleName() + " caught", e);
        }

        st.setAttribute("type", t.toJavaType());
        st.setAttribute("exprlist", nodeChoice.choice.accept(this, argu));
        break;
      default:
        throw new RuntimeException("unexpected choice " + nodeChoice.which + " is " + nodeChoice.choice.getClass());
      }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.