-
Notifications
You must be signed in to change notification settings - Fork 142
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds a possibility to access the first Token of a SyntaxNode. (#904)
* Adds PtrTokenOrSyntax class In order to add a getFirstToken() as a modifiable value, this structure will allows retrieving a token by address rather than by value. There is no real need to get a constptr though so it is not implemented. * Implements getChildPtr Allows to retrieve a mutable version of a token of any SyntaxNode, and in particular the first and last token. * Adds function to get any token pointer. Adds the getTokenPtr function.
- Loading branch information
Showing
3 changed files
with
143 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters