void TupleType(Scope scope, out IType type) { IType innerType; Expect(13); List<IType> types = new List<IType>(); if (StartOf(5)) { TypeIdentifier(scope, out innerType); types.Add(innerType); while (la.kind == 11) { Get(); TypeIdentifier(scope, out innerType); types.Add(innerType); } } Expect(14); type = new TupleType(types); }
public TupleExpression(List<IExpression> exprs) { expressions = exprs; Type = new TupleType(exprs.Select(x => x.Type).ToList()); }