(aLine, aColumn, aSource, aChunks, aName)
| 34 | */ |
| 35 | class SourceNode { |
| 36 | constructor(aLine, aColumn, aSource, aChunks, aName) { |
| 37 | this.children = []; |
| 38 | this.sourceContents = {}; |
| 39 | this.line = aLine == null ? null : aLine; |
| 40 | this.column = aColumn == null ? null : aColumn; |
| 41 | this.source = aSource == null ? null : aSource; |
| 42 | this.name = aName == null ? null : aName; |
| 43 | this[isSourceNode] = true; |
| 44 | if (aChunks != null) this.add(aChunks); |
| 45 | } |
| 46 | |
| 47 | /** |
| 48 | * Creates a SourceNode from generated code and a SourceMapConsumer. |