File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
rocket-chatter-ingestion-server/src/process/prepare/processor/core Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ export class TreeNode {
55
66 lineNumber : number
77 columnNumber : number
8+ sourceFilePath : string
89
910 uses : {
1011 name : string
@@ -16,21 +17,23 @@ export class TreeNode {
1617 type : string ,
1718 body : string ,
1819 lineNumber : number ,
19- columnNumber : number
20+ columnNumber : number ,
21+ sourceFilePath : string
2022 ) {
2123 this . name = name
2224 this . type = type
2325 this . body = body
2426 this . lineNumber = lineNumber
2527 this . columnNumber = columnNumber
28+ this . sourceFilePath = sourceFilePath
2629 }
2730
2831 toString ( ) {
2932 return `${ this . name } (${ this . type } )`
3033 }
3134
3235 getID ( ) : string {
33- return `${ this . name } :${ this . type } :${ this . lineNumber } :${ this . columnNumber } `
36+ return `${ this . sourceFilePath } : ${ this . name } :${ this . type } :${ this . lineNumber } :${ this . columnNumber } `
3437 }
3538
3639 pushUse ( ...uses : { name : string ; type : string } [ ] ) {
@@ -39,4 +42,8 @@ export class TreeNode {
3942 this . uses . push ( use )
4043 }
4144 }
45+
46+ isFile ( ) {
47+ return false
48+ }
4249}
You can’t perform that action at this time.
0 commit comments