use of de.be4.eventbalg.core.parser.node.PVariable in project probparsers by bendisposto.
the class SourcePositionsTest method testGetEndLine.
@Test
public void testGetEndLine() throws Exception {
final Start root = parser.parse("machine\nTestMachine\n\nvariables\nx\n\nend", false);
final AMachineParseUnit parseUnit = (AMachineParseUnit) root.getPParseUnit();
assertEquals(7, ((PositionedNode) parseUnit).getEndPos().getLine());
final LinkedList<PVariable> variables = parseUnit.getVariables();
assertEquals(5, ((PositionedNode) variables.get(0)).getEndPos().getLine());
}
Aggregations