Package xtc.type

Examples of xtc.type.TupleT


      types.add(analyzer.type(b.element));
    }

    // Unify the tuple type with any previous tuple type and update
    // its variant.
    final TupleT  t1    = ast.toTuple(name);
    final TupleT  t2    = new TupleT(name, types);
    final boolean fresh = (null == t1.getTypes());

    if (fresh && ! runtime.test("optionVariant")) {
      ast.add(t1, ast.toVariant("Node", false));
    }
View Full Code Here


          if (null != mark) {
            name = Utilities.qualify(Utilities.getQualifier(name), mark.name);
          }

          final boolean        hasTuple = ast.hasTuple(name);
          final TupleT         tuple    = ast.toTuple(name);
          final List<VariantT> variants = ast.toVariants(tuple);

          if (! hasTuple || variants.isEmpty()) {
            ast.add(tuple, types.get(0).toVariant());
          } else if (! variants.contains(types.get(0))) {
View Full Code Here

TOP

Related Classes of xtc.type.TupleT

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.