/// <summary> /// Disposes this enumerator /// </summary> public void Dispose() { ast = null; }
/// <summary> /// Initializes this result as a success with the given AST /// </summary> /// <param name="errors">The list of errors</param> /// <param name="text">The parsed text</param> /// <param name="ast">The produced AST</param> internal ParseResult(ROList <ParseError> errors, Text text, AST ast) { this.errors = errors; this.text = text; this.ast = ast; }
/// <summary> /// Initializes this family /// </summary> /// <param name="tree">The parent parse tree</param> /// <param name="parent">The index of the parent node in the parse tree</param> internal ASTFamily(AST tree, int parent) { this.tree = tree; this.parent = parent; }