Class AbstractProtoParserListener

    • Constructor Detail

      • AbstractProtoParserListener

        protected AbstractProtoParserListener​(org.antlr.v4.runtime.BufferedTokenStream tokens,
                                              ProtoContext context)
    • Method Detail

      • getSourceCodeLocation

        protected SourceCodeLocation getSourceCodeLocation​(org.antlr.v4.runtime.ParserRuleContext ctx)
      • attachComments

        protected void attachComments​(org.antlr.v4.runtime.ParserRuleContext ctx,
                                      AbstractElement element,
                                      boolean addTrailingComment)
      • trim

        protected List<String> trim​(List<String> comments)
        Remove common leading whitespaces from all strings in the list. Returns new list instance.
      • getTextFromLineCommentToken

        protected String getTextFromLineCommentToken​(org.antlr.v4.runtime.Token token)