File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed
rocket-chatter-ingestion-server/src/process/prepare/processor/core Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -2,21 +2,37 @@ export class TreeNode {
22 name : string = ""
33 type : string = ""
44 body : string = ""
5+
6+ lineNumber : number
7+ columnNumber : number
8+
59 uses : {
610 name : string
711 type : string
812 } [ ] = [ ]
913
10- constructor ( name : string , type : string , body : string ) {
14+ constructor (
15+ name : string ,
16+ type : string ,
17+ body : string ,
18+ lineNumber : number ,
19+ columnNumber : number
20+ ) {
1121 this . name = name
1222 this . type = type
1323 this . body = body
24+ this . lineNumber = lineNumber
25+ this . columnNumber = columnNumber
1426 }
1527
1628 toString ( ) {
1729 return `${ this . name } (${ this . type } )`
1830 }
1931
32+ getID ( ) : string {
33+ return `${ this . name } :${ this . type } :${ this . lineNumber } :${ this . columnNumber } `
34+ }
35+
2036 pushUse ( ...uses : { name : string ; type : string } [ ] ) {
2137 for ( const use of uses ) {
2238 if ( this . uses . findIndex ( ( u ) => u . name == use . name ) !== - 1 ) continue
You can’t perform that action at this time.
0 commit comments