private void postProcess() { for (ParseError error : parsingResult.parseErrors) { int errStart = error.getStartIndex(); int errEnd = error.getEndIndex(); problems.add(new ParseProblem(new Position(mapPosition(errStart), mapPosition(errEnd)), error.toString())); } if (parsingResult.parseTreeRoot != null) { nodes.add(parsingResult.parseTreeRoot.getValue()); gatherComments(parsingResult.parseTreeRoot); } comments = Collections.unmodifiableList(comments); nodes = Collections.unmodifiableList(nodes); problems = Collections.unmodifiableList(problems); rtrimPositions(nodes, comments); //TODO Write test case with javadoc intermixed with empty declares. //TODO test javadoc on a package declaration. //TODO javadoc in between keywords. associateJavadoc(comments, nodes); fixPositions(nodes); fixPositions(comments); parsed = true; }
private void postProcess() { for (ParseError error : parsingResult.parseErrors) { int errStart = error.getStartIndex(); int errEnd = error.getEndIndex(); problems.add(new ParseProblem(new Position(mapPosition(errStart), mapPosition(errEnd)), error.toString())); } if (parsingResult.parseTreeRoot != null) { nodes.add(parsingResult.parseTreeRoot.getValue()); gatherComments(parsingResult.parseTreeRoot); } comments = Collections.unmodifiableList(comments); nodes = Collections.unmodifiableList(nodes); problems = Collections.unmodifiableList(problems); rtrimPositions(nodes, comments); //TODO Write test case with javadoc intermixed with empty declares. //TODO test javadoc on a package declaration. //TODO javadoc in between keywords. associateJavadoc(comments, nodes); fixPositions(nodes); fixPositions(comments); parsed = true; }
private void postProcess() { for (ParseError error : parsingResult.parseErrors) { int errStart = error.getStartIndex(); int errEnd = error.getEndIndex(); problems.add(new ParseProblem(new Position(mapPosition(errStart), mapPosition(errEnd)), error.toString())); } if (parsingResult.parseTreeRoot != null) { nodes.add(parsingResult.parseTreeRoot.getValue()); gatherComments(parsingResult.parseTreeRoot); } comments = Collections.unmodifiableList(comments); nodes = Collections.unmodifiableList(nodes); problems = Collections.unmodifiableList(problems); rtrimPositions(nodes, comments); //TODO Write test case with javadoc intermixed with empty declares. //TODO test javadoc on a package declaration. //TODO javadoc in between keywords. associateJavadoc(comments, nodes); fixPositions(nodes); fixPositions(comments); parsed = true; }