File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -343,6 +343,10 @@ export abstract class Node extends Origin implements Destination {
343
343
set position ( newPos : Position | undefined ) {
344
344
this . positionOverride = newPos ;
345
345
}
346
+
347
+ get sourceText ( ) : string | undefined {
348
+ return this . origin ?. sourceText ;
349
+ }
346
350
}
347
351
348
352
export interface FeatureDescription {
Original file line number Diff line number Diff line change @@ -103,8 +103,10 @@ describe('Lionweb integration', function() {
103
103
const root = nodes [ 0 ] ;
104
104
expect ( root . node ) . to . be . instanceof ( LionwebNode ) ;
105
105
let dir = new TraceNode ( root . node as LionwebNode ) ;
106
+ expect ( dir . nodeDefinition ) . not . to . be . undefined ;
106
107
expect ( dir . getRole ( ) ) . to . be . undefined ;
107
108
expect ( dir . nodeDefinition . name ) . to . equal ( "Directory" ) ;
109
+ expect ( dir . containment ( "position" ) ) . to . be . undefined ;
108
110
expect ( dir . getAttributeValue ( "name" ) ) . to . equal ( "resources.zip" ) ;
109
111
expect ( dir . getChildren ( "files" ) . length ) . to . equal ( 1 ) ;
110
112
dir = dir . getChildren ( "files" ) [ 0 ] ;
You can’t perform that action at this time.
0 commit comments