Merge pull request #279 from mikesamuel/patch-1

Clean up language about *IFileElementType*
This commit is contained in:
Dmitry Jemerov 2020-04-30 09:37:39 +02:00 committed by GitHub
commit 0f9da8cef5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,9 +11,9 @@ class.
Each AST node has an associated element type
[`IElementType`](upsource:///platform/core-api/src/com/intellij/psi/tree/IElementType.java)
instance, and the element types are defined by the language plugin.
The top-level node of the AST tree for a file needs to have a special element type, implementing the
The top-level node of the AST tree for a file needs to have a special element type which extends the
[`IFileElementType`](upsource:///platform/core-api/src/com/intellij/psi/tree/IFileElementType.java)
interface.
class.
The AST nodes have a direct mapping to text ranges in the underlying document.
The bottom-most nodes of the AST match individual tokens returned by the lexer, and higher level nodes match multiple-token fragments.