public Coordinate(int offset, int col, int line) { this.offset = offset; this.position = new Location(col, line); }
public Coordinate(int offset, int col, int line) { this.offset = offset; this.position = new Location(col, line); }
public static Location at(int col, int line) { return new Location(col, line); }
public static Location at(int col, int line) { return new Location(col, line); }
public static Location at(int index) { return new Location(index, 1); }
public static Location at(int index) { return new Location(index, 1); }
public Template() { super(new Location(0, 0), new ArrayList<Block<?>>()); } }
public Template() { super(new Location(0, 0), new ArrayList<Block<?>>()); } }
public void appendLineBreak(SectionType currentType, Location position) { this.pos = new Location(1, position.getLine() + 1); switch (currentType) { case SCRIPTLET: out.append(sep); lineNumber++; break; case EXPR: out.append(sep); lineNumber++; break; default: throw new AssertionError(); } }
public void appendLineBreak(SectionType currentType, Location position) { this.pos = new Location(1, position.getLine() + 1); switch (currentType) { case SCRIPTLET: out.append(sep); lineNumber++; break; case EXPR: out.append(sep); lineNumber++; break; default: throw new AssertionError(); } }
ArrayList<ASTNode.Block<?>> blocks = bar(list.getFirst(), new Coordinate(0, new Location(1, 1)), token.getEnd()); ASTNode.Template template = new ASTNode.Template(); template.addChildren(blocks);
ArrayList<ASTNode.Block<?>> blocks = bar(list.getFirst(), new Coordinate(0, new Location(1, 1)), token.getEnd()); ASTNode.Template template = new ASTNode.Template(); template.addChildren(blocks);
String chunk = text.substring(from, to); ctx.appendText(chunk); ctx.appendLineBreak(new Location(colNumber + (to - from), lineNumber)); from = to + 1; lineNumber++;
String chunk = text.substring(from, to); ctx.appendText(chunk); ctx.appendLineBreak(new Location(colNumber + (to - from), lineNumber)); from = to + 1; lineNumber++;