Interface ISourceCodeParser


public interface ISourceCodeParser
Interface for an AST source code parser.
Restriction:
This interface is not intended to be implemented by clients.
Restriction:
This interface is not intended to be extended by clients.
  • Method Details

    • parse

      Compute an abstract syntax tree (AST). The returned AST is frozen, any attempt modify any of the nodes in the AST will result in an IllegalStateException.
      Returns:
      the AST, should not return null
      Throws:
      ParseError - if parsing has been cancelled or for other reasons
    • cancel

      void cancel()
      Cancel the parsing.
    • encounteredError

      boolean encounteredError()
      Check whether there were errors.
      Returns:
      true if there were errors
    • getCompletionNode

      IASTCompletionNode getCompletionNode()
      Compute an IASTCompletionNode for code completion.
      Returns:
      a completion node or null if none could be computed
      Throws:
      ParseError - if parsing has been cancelled or for other reasons