@@ -19,7 +19,7 @@ import {
19
19
} from "./transpilation-package" ;
20
20
import { TRANSPILATION_EPACKAGE_V1 } from "./transpilation-package-v1" ;
21
21
import { ensureEcoreContainsAllDataTypes } from "./ecore-patching" ;
22
- import { ExternalNode , TraceNode } from "../trace/trace-node" ;
22
+ import { NodeAdapter , TraceNode } from "../trace/trace-node" ;
23
23
24
24
export function saveForStrumentaPlayground < R extends Node > (
25
25
result : ParsingResult < R > , name : string ,
@@ -162,7 +162,7 @@ abstract class AbstractTranspilationTrace {
162
162
protected sourceToTarget = new Map < string , TargetNode [ ] > ( ) ;
163
163
public issues : Issue [ ] = [ ] ;
164
164
165
- protected constructor ( protected wrappedNode : ExternalNode ) { }
165
+ protected constructor ( protected wrappedNode : NodeAdapter ) { }
166
166
167
167
getDestinationNodes ( sourceNode : SourceNode ) : TargetNode [ ] {
168
168
return this . sourceToTarget . get ( sourceNode . wrappedNode . getId ( ) ) || [ ] ;
@@ -239,7 +239,7 @@ export class WorkspaceTranspilationTrace extends AbstractTranspilationTrace {
239
239
}
240
240
241
241
abstract class AbstractWorkspaceFile < N > {
242
- protected constructor ( protected wrappedNode : ExternalNode , protected trace : AbstractTranspilationTrace ) { }
242
+ protected constructor ( protected wrappedNode : NodeAdapter , protected trace : AbstractTranspilationTrace ) { }
243
243
244
244
get path ( ) : string {
245
245
return this . wrappedNode . getAttribute ( "path" ) ;
@@ -257,7 +257,7 @@ abstract class AbstractWorkspaceFile<N> {
257
257
}
258
258
259
259
export class SourceWorkspaceFile extends AbstractWorkspaceFile < SourceNode > {
260
- constructor ( wrapped : ExternalNode , trace : AbstractTranspilationTrace ) {
260
+ constructor ( wrapped : NodeAdapter , trace : AbstractTranspilationTrace ) {
261
261
super ( wrapped , trace ) ;
262
262
}
263
263
@@ -269,7 +269,7 @@ export class SourceWorkspaceFile extends AbstractWorkspaceFile<SourceNode> {
269
269
export class TargetWorkspaceFile extends AbstractWorkspaceFile < TargetNode > {
270
270
node : TargetNode ;
271
271
272
- constructor ( wrapped : ExternalNode , trace : AbstractTranspilationTrace ) {
272
+ constructor ( wrapped : NodeAdapter , trace : AbstractTranspilationTrace ) {
273
273
super ( wrapped , trace ) ;
274
274
}
275
275
}
@@ -278,7 +278,7 @@ export class SourceNode extends TraceNode {
278
278
parent ?: SourceNode ;
279
279
protected _destinations ?: TargetNode [ ] ;
280
280
281
- constructor ( wrappedNode : ExternalNode , protected trace : AbstractTranspilationTrace ,
281
+ constructor ( wrappedNode : NodeAdapter , protected trace : AbstractTranspilationTrace ,
282
282
public readonly file ?: SourceWorkspaceFile ) {
283
283
super ( wrappedNode ) ;
284
284
if ( wrappedNode . parent ) {
@@ -305,7 +305,7 @@ export class SourceNode extends TraceNode {
305
305
export class TargetNode extends TraceNode {
306
306
parent ?: TargetNode ;
307
307
308
- constructor ( wrapped : ExternalNode , protected trace : AbstractTranspilationTrace , public file ?: TargetWorkspaceFile ) {
308
+ constructor ( wrapped : NodeAdapter , protected trace : AbstractTranspilationTrace , public file ?: TargetWorkspaceFile ) {
309
309
super ( wrapped ) ;
310
310
if ( wrapped . parent ) {
311
311
this . parent = new TargetNode ( wrapped . parent , this . trace , this . file ) ;
0 commit comments