Uses of Class
net.hydromatic.morel.ast.Pos
-
Packages that use Pos Package Description net.hydromatic.morel.ast Abstract syntax tree. -
-
Uses of Pos in net.hydromatic.morel.ast
Fields in net.hydromatic.morel.ast declared as Pos Modifier and Type Field Description PosAstNode. posstatic PosPos. ZEROMethods in net.hydromatic.morel.ast that return Pos Modifier and Type Method Description PosPos. plus(Pos pos)PosPos. plusAll(java.lang.Iterable<Pos> poses)PosPos. plusAll(java.util.List<? extends AstNode> nodes)static <E> PosPos. sum(java.lang.Iterable<E> elements, java.util.function.Function<E,Pos> fn)static PosPos. sum(java.lang.Iterable<Pos> poses)Combines an iterable of parser positions to create a position which spans from the beginning of the first to the end of the last.private static PosPos. sum(java.lang.Iterable<Pos> poses, int line, int column, int endLine, int endColumn)Computes the parser position which is the sum of an array of parser positions and of a parser position represented by (line, column, endLine, endColumn).static PosPos. sum(java.util.List<? extends AstNode> nodes)private static PosPos. sum_(java.util.List<Pos> positions)Combines a list of parser positions to create a position which spans from the beginning of the first to the end of the last.Methods in net.hydromatic.morel.ast with parameters of type Pos Modifier and Type Method Description Ast.AggregateAstBuilder. aggregate(Pos pos, Ast.Exp aggregate, Ast.Exp argument, Ast.Id id)Ast.ExpAstBuilder. annotatedExp(Pos pos, Ast.Type type, Ast.Exp expression)Ast.PatAstBuilder. annotatedPat(Pos pos, Ast.Pat pat, Ast.Type type)Ast.LiteralAstBuilder. boolLiteral(Pos p, boolean b)Creates abooleanliteral.Ast.CaseAstBuilder. caseOf(Pos pos, Ast.Exp e, java.lang.Iterable<? extends Ast.Match> matchList)Ast.LiteralAstBuilder. charLiteral(Pos p, char c)Creates acharliteral.Ast.TypeAstBuilder. compositeType(Pos pos, java.lang.Iterable<Ast.Type> types)Ast.Con0PatAstBuilder. con0Pat(Pos pos, Ast.Id tyCon)Ast.ConPatAstBuilder. conPat(Pos pos, Ast.Id tyCon, Ast.Pat pat)Ast.DatatypeBindAstBuilder. datatypeBind(Pos pos, Ast.Id name, java.lang.Iterable<Ast.TyVar> tyVars, java.lang.Iterable<Ast.TyCon> tyCons)Ast.DatatypeDeclAstBuilder. datatypeDecl(Pos pos, java.lang.Iterable<Ast.DatatypeBind> binds)Ast.FnAstBuilder. fn(Pos pos, java.lang.Iterable<? extends Ast.Match> matchList)Ast.FnAstBuilder. fn(Pos pos, Ast.Match... matchList)Ast.FromAstBuilder. from(Pos pos, java.util.Map<Ast.Id,Ast.Exp> sources, Ast.Exp filterExp, Ast.Exp yieldExp, java.util.List<Pair<Ast.Exp,Ast.Id>> groupExps, java.util.List<Ast.Aggregate> aggregates)Ast.FunBindAstBuilder. funBind(Pos pos, java.lang.Iterable<? extends Ast.FunMatch> matchList)Ast.FunctionTypeAstBuilder. functionType(Pos pos, Ast.Type fromType, Ast.Type toType)Ast.FunDeclAstBuilder. funDecl(Pos pos, java.lang.Iterable<? extends Ast.FunBind> valBinds)Ast.FunMatchAstBuilder. funMatch(Pos pos, java.lang.String name, java.lang.Iterable<? extends Ast.Pat> patList, Ast.Exp e)Ast.IdAstBuilder. id(Pos pos, java.lang.String name)Ast.PatAstBuilder. idPat(Pos pos, java.lang.String name)Ast.ExpAstBuilder. ifThenElse(Pos pos, Ast.Exp condition, Ast.Exp ifTrue, Ast.Exp ifFalse)Ast.ExpAstBuilder. infixCall(Pos pos, Op op, Ast.Exp a0, Ast.Exp a1)Ast.InfixPatAstBuilder. infixPat(Pos pos, Op op, Ast.Pat p0, Ast.Pat p1)Ast.LiteralAstBuilder. intLiteral(java.math.BigDecimal value, Pos pos)Creates anintliteral.Ast.LetExpAstBuilder. let(Pos pos, java.lang.Iterable<? extends Ast.Decl> decls, Ast.Exp e)Ast.ListAstBuilder. list(Pos pos, java.lang.Iterable<? extends Ast.Exp> list)Ast.ListPatAstBuilder. listPat(Pos pos, java.lang.Iterable<? extends Ast.Pat> args)Ast.ListPatAstBuilder. listPat(Pos pos, Ast.Pat... args)Ast.LiteralPatAstBuilder. literalPat(Pos pos, Op op, java.lang.Comparable value)Ast.ExpAstBuilder. map(Pos pos, Ast.Exp e1, Ast.Exp e2)Ast.MatchAstBuilder. match(Pos pos, Ast.Pat pat, Ast.Exp e)Ast.TypeAstBuilder. namedType(Pos pos, java.lang.Iterable<? extends Ast.Type> types, java.lang.String name)Ast.ExpAstBuilder. negate(Pos p, Ast.Exp a)PosPos. plus(Pos pos)Ast.PrefixCallAstBuilder. prefixCall(Pos p, Op op, Ast.Exp a)Creates a call to a prefix operator.Ast.LiteralAstBuilder. realLiteral(java.math.BigDecimal value, Pos pos)Creates afloatliteral.Ast.ExpAstBuilder. record(Pos pos, java.util.Map<java.lang.String,Ast.Exp> map)Ast.RecordPatAstBuilder. recordPat(Pos pos, boolean ellipsis, java.util.Map<java.lang.String,? extends Ast.Pat> args)Ast.RecordSelectorAstBuilder. recordSelector(Pos pos, java.lang.String name)Ast.RecordTypeAstBuilder. recordType(Pos pos, java.util.Map<java.lang.String,Ast.Type> fieldTypes)Ast.LiteralAstBuilder. stringLiteral(Pos pos, java.lang.String value)Creates a string literal.Ast.TupleAstBuilder. tuple(Pos pos, java.lang.Iterable<? extends Ast.Exp> list)Ast.TuplePatAstBuilder. tuplePat(Pos pos, java.lang.Iterable<? extends Ast.Pat> args)Ast.TuplePatAstBuilder. tuplePat(Pos pos, Ast.Pat... args)Ast.TypeAstBuilder. tupleType(Pos pos, java.lang.Iterable<Ast.Type> types)Ast.TyConAstBuilder. typeConstructor(Pos pos, Ast.Id id, Ast.Type type)Ast.TyVarAstBuilder. tyVar(Pos pos, java.lang.String name)Ast.LiteralAstBuilder. unitLiteral(Pos p)Creates a unit literal.Ast.ValBindAstBuilder. valBind(Pos pos, boolean rec, Ast.Pat pat, Ast.Exp e)Ast.ValDeclAstBuilder. valDecl(Pos pos, java.lang.Iterable<? extends Ast.ValBind> valBinds)Ast.ValDeclAstBuilder. valDecl(Pos pos, Ast.ValBind... valBinds)Ast.WildcardPatAstBuilder. wildcardPat(Pos pos)Method parameters in net.hydromatic.morel.ast with type arguments of type Pos Modifier and Type Method Description PosPos. plusAll(java.lang.Iterable<Pos> poses)static <E> PosPos. sum(java.lang.Iterable<E> elements, java.util.function.Function<E,Pos> fn)static PosPos. sum(java.lang.Iterable<Pos> poses)Combines an iterable of parser positions to create a position which spans from the beginning of the first to the end of the last.private static PosPos. sum(java.lang.Iterable<Pos> poses, int line, int column, int endLine, int endColumn)Computes the parser position which is the sum of an array of parser positions and of a parser position represented by (line, column, endLine, endColumn).private static PosPos. sum_(java.util.List<Pos> positions)Combines a list of parser positions to create a position which spans from the beginning of the first to the end of the last.Constructors in net.hydromatic.morel.ast with parameters of type Pos Constructor Description Aggregate(Pos pos, Ast.Exp aggregate, Ast.Exp argument, Ast.Id id)AnnotatedExp(Pos pos, Ast.Type type, Ast.Exp e)Creates a type annotation.AnnotatedPat(Pos pos, Ast.Pat pat, Ast.Type type)Apply(Pos pos, Ast.Exp fn, Ast.Exp arg)AstNode(Pos pos, Op op)Case(Pos pos, Ast.Exp e, com.google.common.collect.ImmutableList<Ast.Match> matchList)CompositeType(Pos pos, com.google.common.collect.ImmutableList<Ast.Type> types)Con0Pat(Pos pos, Ast.Id tyCon)ConPat(Pos pos, Ast.Id tyCon, Ast.Pat pat)DatatypeBind(Pos pos, com.google.common.collect.ImmutableList<Ast.TyVar> tyVars, Ast.Id name, com.google.common.collect.ImmutableList<Ast.TyCon> tyCons)DatatypeDecl(Pos pos, com.google.common.collect.ImmutableList<Ast.DatatypeBind> binds)Decl(Pos pos, Op op)Exp(Pos pos, Op op)Fn(Pos pos, com.google.common.collect.ImmutableList<Ast.Match> matchList)From(Pos pos, com.google.common.collect.ImmutableMap<Ast.Id,Ast.Exp> sources, Ast.Exp filterExp, Ast.Exp yieldExp, com.google.common.collect.ImmutableList<Pair<Ast.Exp,Ast.Id>> groupExps, com.google.common.collect.ImmutableList<Ast.Aggregate> aggregates)FunBind(Pos pos, com.google.common.collect.ImmutableList<Ast.FunMatch> matchList)FunctionType(Pos pos, Ast.Type paramType, Ast.Type resultType)FunDecl(Pos pos, com.google.common.collect.ImmutableList<Ast.FunBind> funBinds)FunMatch(Pos pos, java.lang.String name, com.google.common.collect.ImmutableList<Ast.Pat> patList, Ast.Exp e)Id(Pos pos, java.lang.String name)Creates an Id.IdPat(Pos pos, java.lang.String name)If(Pos pos, Ast.Exp condition, Ast.Exp ifTrue, Ast.Exp ifFalse)InfixCall(Pos pos, Op op, Ast.Exp a0, Ast.Exp a1)InfixPat(Pos pos, Op op, Ast.Pat p0, Ast.Pat p1)LetExp(Pos pos, com.google.common.collect.ImmutableList<Ast.Decl> decls, Ast.Exp e)List(Pos pos, java.lang.Iterable<? extends Ast.Exp> args)ListPat(Pos pos, com.google.common.collect.ImmutableList<Ast.Pat> args)Literal(Pos pos, Op op, java.lang.Comparable value)Creates a Literal.LiteralPat(Pos pos, Op op, java.lang.Comparable value)Match(Pos pos, Ast.Pat pat, Ast.Exp e)NamedType(Pos pos, com.google.common.collect.ImmutableList<Ast.Type> types, java.lang.String name)Creates a type.Pat(Pos pos, Op op)PrefixCall(Pos pos, Op op, Ast.Exp a)Record(Pos pos, com.google.common.collect.ImmutableSortedMap<java.lang.String,Ast.Exp> args)RecordPat(Pos pos, boolean ellipsis, com.google.common.collect.ImmutableMap<java.lang.String,Ast.Pat> args)RecordSelector(Pos pos, java.lang.String name)Creates a record selector.RecordType(Pos pos, com.google.common.collect.ImmutableMap<java.lang.String,Ast.Type> fieldTypes)Creates a TyVar.Tuple(Pos pos, java.lang.Iterable<? extends Ast.Exp> args)TuplePat(Pos pos, com.google.common.collect.ImmutableList<Ast.Pat> args)TupleType(Pos pos, com.google.common.collect.ImmutableList<Ast.Type> types)TyCon(Pos pos, Ast.Id id, Ast.Type type)Type(Pos pos, Op op)Creates a type node.TyVar(Pos pos, java.lang.String name)Creates a TyVar.ValBind(Pos pos, boolean rec, Ast.Pat pat, Ast.Exp e)ValDecl(Pos pos, com.google.common.collect.ImmutableList<Ast.ValBind> valBinds)WildcardPat(Pos pos)
-