Package org.rascalmpl.ast

Examples of org.rascalmpl.ast.TypeArg


       
        Type[] fields = new Type[nAllArgs];
        String[] labels = new String[nAllArgs];

        for (int i = 0; i < args.size(); i++) {
          TypeArg arg = args.get(i);
          fields[i] = arg.getType().typeOf(env, true, eval);

          if (fields[i] == null) {
            throw new UndeclaredType(arg.hasName() ? Names.name(arg.getName()) : "?", arg);
          }

          if (arg.hasName()) {
            labels[i] = Names.name(arg.getName());
          } else {
            labels[i] = "arg" + java.lang.Integer.toString(i);
          }
        }
       
View Full Code Here

TOP

Related Classes of org.rascalmpl.ast.TypeArg

Copyright © 2018 www.massapicom. 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.