builder.append(entry.getKey()).append(':'). append("new ").append(Foo.class.getName()).append("("). append("new ").append(Location.class.getName()).append("(").append(location.getCol()).append(',').append(location.getLine()).append("),"). append("'"); Tools.escape(text.getValue(), builder);
builder.append(entry.getKey()).append(':'). append("new ").append(Foo.class.getName()).append("("). append("new ").append(Location.class.getName()).append("(").append(location.getCol()).append(',').append(location.getLine()).append("),"). append("'"); Tools.escape(text.getValue(), builder);
templateModel.getPath().getCanonical(), location.getLine(), location.getCol()); } else { urlNode.setInvocation(mi);
templateModel.getPath().getCanonical(), location.getLine(), location.getCol()); } else { urlNode.setInvocation(mi);
ctx.openSection(section.getType(), section.getBeginPosition()); int lineNumber = section.getBegin().getPosition().getLine(); int colNumber = section.getBegin().getPosition().getCol(); String text = section.getText(); int from = 0;
ctx.openSection(section.getType(), section.getBeginPosition()); int lineNumber = section.getBegin().getPosition().getLine(); int colNumber = section.getBegin().getPosition().getCol(); String text = section.getText(); int from = 0;
private void fail(String route, int expectedCode, int index) { try { RouteParser.parse(route, new Collector()); throw failure("Was expecting route to fail at " + index); } catch (SyntaxException e) { assertEquals(expectedCode, e.getCode()); assertNotNull(e.getLocation()); assertEquals(index, e.getLocation().getCol()); assertEquals(1, e.getLocation().getLine()); } }
private void fail(String route, int expectedCode, int index) { try { RouteParser.parse(route, new Collector()); throw failure("Was expecting route to fail at " + index); } catch (SyntaxException e) { assertEquals(expectedCode, e.getCode()); assertNotNull(e.getLocation()); assertEquals(index, e.getLocation().getCol()); assertEquals(1, e.getLocation().getLine()); } }