1 package org.simantics.scl.compiler.internal.types.ast;
3 import org.simantics.scl.compiler.internal.types.TypeElaborationContext;
4 import org.simantics.scl.compiler.types.Type;
5 import org.simantics.scl.compiler.types.Types;
6 import org.simantics.scl.compiler.types.exceptions.SCLTypeParseException;
10 public class TTupleAst extends TypeAst {
11 public final TypeAst[] components;
13 public TTupleAst(TypeAst ... components) {
14 this.components = components;
18 public void toString(StringBuilder b) {
20 for(int i=0;i<components.length;++i) {
23 components[i].toString(b);
29 public Type toType(TypeElaborationContext context) throws SCLTypeParseException {
30 return Types.tuple(toTypes(context, components));
34 public int getPrecedence() {