The SyntaxTree class.
More...
#include <SyntaxTree.h>
|
| enum | SyntaxCategory : uint8_t { UNSPECIFIED = 0,
Declarations,
Expressions,
Statements
} |
| | The SyntaxCategory enumeration. More...
|
| |
The SyntaxTree class.
- Note
- This API is inspired by that of
Microsoft.CodeAnalysis.SyntaxTree from Roslyn, the .NET Compiler Platform.
◆ SyntaxCategory
The SyntaxCategory enumeration.
The possible categories of syntax that a SyntaxTree may represent. If unspecified, it is assumed that a SyntaxTree represents a translation-unit.
◆ diagnostics()
| std::vector< Diagnostic > SyntaxTree::diagnostics |
( |
| ) |
const |
◆ filePath()
| std::string SyntaxTree::filePath |
( |
| ) |
const |
The path of the file associated to this SyntaxTree.
◆ hasTranslationUnitRoot()
| bool SyntaxTree::hasTranslationUnitRoot |
( |
| ) |
const |
◆ parseText()
Parse the input text, as according to the syntaxCategory, in order to build this SyntaxTree.
◆ root()
◆ text()
◆ translationUnitRoot()
The documentation for this class was generated from the following files: