-
-
Notifications
You must be signed in to change notification settings - Fork 238
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add updateNodeSourceCodeLocation to the tree adapter (#315)
* Add updateNodeSourceCodeLocation to the tree adapter * Add updateNodeSourceCodeLocation to the tree adapter documentation * Renamed updateNodeSourceCodeLocation parameter location to endLocation * Use updateNodeSourceCodeLocation to update the end location of tokens * Update tree adapter updateNodeSourceCodeLocation documentation to reflect updating the source code location of nodes not just elements * Add test for updating node source code location
- Loading branch information
Showing
6 changed files
with
139 additions
and
14 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# Interface: EndLocation | ||
|
||
### Properties | ||
|
||
* [endCol](#endcol) | ||
* [endOffset](#endoffset) | ||
* [endLine](#endline) | ||
* [endTag](#endtag) | ||
|
||
--- | ||
|
||
## Properties | ||
|
||
<a id="endcol"></a> | ||
|
||
### endCol | ||
|
||
**● endCol**: *`number`* | ||
|
||
One-based column index of the last character | ||
|
||
___ | ||
<a id="endoffset"></a> | ||
|
||
### endOffset | ||
|
||
**● endOffset**: *`number`* | ||
|
||
Zero-based last character index | ||
|
||
___ | ||
<a id="endline"></a> | ||
|
||
### endLine | ||
|
||
**● endLine**: *`number`* | ||
|
||
One-based line index of the last character | ||
|
||
___ | ||
<a id="endtag"></a> | ||
|
||
### endTag | ||
|
||
**● endTag**: *[Location](location.md)|undefined* | ||
|
||
Element's end tag location info. | ||
This property is undefined, if the element has no closing tag. |
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
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