474475476477478479480481482483
catch(Exception e) { //do nothing, problem will be reported next. } ParserProblem problem = new ParserProblem(sourceLocation); problems.add(problem); return null; }
471472473474475476477478479480481
parser.consumeParsingError(e); problems.addAll(parser.getSyntaxProblems()); } catch (TokenStreamException e) { problems.add(new ParserProblem(container)); } finally { if (parser != null) parser.disconnect();
484485486487488489490
} private static ICompilerProblem genericParserProblem(String path, int start, int end, int line, int column) { ISourceLocation location = new SourceLocation(path, start, end, line, column); return new ParserProblem(location); }
629630631632633634635636637638639
parser.consumeParsingError(e); problems.addAll(parser.getSyntaxProblems()); } catch (TokenStreamException e) { final ParserProblem genericParserProblem = new ParserProblem(location); problems.add(genericParserProblem); } finally { parser.disconnect();
12581259126012611262126312641265126612671268
{ metadataParser.meta(currentAttributes); } catch (RecognitionException e) { final ParserProblem problem = new ParserProblem((TokenBase)attributeToken); problems.add(problem); } catch (TokenStreamException e) { //do nothing