diff options
Diffstat (limited to 'compiler/sourcemap.nim')
-rw-r--r-- | compiler/sourcemap.nim | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/compiler/sourcemap.nim b/compiler/sourcemap.nim index b0b6fea2e..0810b7f7e 100644 --- a/compiler/sourcemap.nim +++ b/compiler/sourcemap.nim @@ -160,10 +160,7 @@ func parse*(source: string): SourceInfo = func toSourceMap*(info: SourceInfo, file: string): SourceMap {.raises: [].} = ## Convert from high level SourceInfo into the required SourceMap object # Add basic info - result.version = 3 - result.file = file - result.sources = info.files - result.names = info.names + result = SourceMap(version: 3, file: file, sources: info.files, names: info.names) # Convert nodes into mappings. # Mappings are split into blocks where each block referes to a line in the outputted JS. # Blocks can be separated into statements which refere to tokens on the line. |