Skip to content

Commit

Permalink
feat: add start and end token positions to node attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
Yilun-Sun authored and rainx committed Apr 19, 2024
1 parent c8b991b commit baf8df6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "feat: add start and end token positions to node attributes",
"packageName": "@rightcapital/php-parser",
"email": "yilunsun11@yeah.net",
"dependentChangeType": "patch"
}
2 changes: 2 additions & 0 deletions src/php-parser/types/attributes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ import type { IComment } from './comment';
export interface IAttributes {
startLine: number;
startFilePos: number;
startTokenPos: number;
endLine: number;
endFilePos: number;
endTokenPos: number;
comments?: IComment[];
}

0 comments on commit baf8df6

Please sign in to comment.