Extending Qt Creator Manual | Parser

Extending Qt Creator Manual 4.7.0

# Parser Class

(QmlJS::Parser)

Inherits: | QmlJSGrammar (protected)

- List of all members, including inherited members

## Public Types

class | Value

## Public Functions

| Parser(QmlJS::Engine *engine)
| ~Parser()
AST::UiProgram * | ast() const
QmlJS::DiagnosticMessage | diagnosticMessage() const
QList<QmlJS::DiagnosticMessage> | diagnosticMessages() const
int | errorColumnNumber() const
int | errorLineNumber() const
QString | errorMessage() const
AST::ExpressionNode * | expression() const
bool | parse()
bool | parseExpression()
bool | parseProgram()
bool | parseSourceElement()
bool | parseStatement()
bool | parseUiObjectMember()
AST::Node * | rootNode() const
AST::Statement * | statement() const
AST::UiObjectMember * | uiObjectMember() const

## Protected Types

class | SavedToken
enum | anonymous { TOKEN_BUFFER_SIZE }

## Protected Functions

AST::SourceLocation & | loc(int index)
bool | parse(int startToken)
void | reallocateStack()
AST::UiQualifiedId * | reparseAsQualifiedId(AST::ExpressionNode *expr)
AST::UiQualifiedPragmaId * | reparseAsQualifiedPragmaId(AST::ExpressionNode *expr)
QStringRef & | stringRef(int index)
QmlJS::Parser::Value & | sym(int index)

### Additional Inherited Members

- 2 static public members inherited from QmlJSGrammar

## Member Type Documentation

### enum Parser::anonymous

## Member Function Documentation

### Parser::Parser(QmlJS::Engine *engine)

Default constructs an instance of Parser.

### Parser::~Parser()

Destroys the instance of Parser.

### AST::UiProgram *Parser::ast() const

### QmlJS::DiagnosticMessage Parser::diagnosticMessage() const

### QList<QmlJS::DiagnosticMessage> Parser::diagnosticMessages() const

### int Parser::errorColumnNumber() const

### int Parser::errorLineNumber() const

### QString Parser::errorMessage() const

### AST::ExpressionNode *Parser::expression() const

### `[protected]` AST::SourceLocation &Parser::loc(int index)

### bool Parser::parse()

### `[protected]` bool Parser::parse(int startToken)

### bool Parser::parseExpression()

### bool Parser::parseProgram()

### bool Parser::parseSourceElement()

### bool Parser::parseStatement()

### bool Parser::parseUiObjectMember()

### `[protected]` void Parser::reallocateStack()

### `[protected]` AST::UiQualifiedId *Parser::reparseAsQualifiedId(AST::ExpressionNode *expr)

### `[protected]` AST::UiQualifiedPragmaId *Parser::reparseAsQualifiedPragmaId(AST::ExpressionNode *expr)

### AST::Node *Parser::rootNode() const

### AST::Statement *Parser::statement() const

### `[protected]` QStringRef &Parser::stringRef(int index)

### `[protected]` QmlJS::Parser::Value &Parser::sym(int index)

### AST::UiObjectMember *Parser::uiObjectMember() const