File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 9
9
type AssemblyNode ,
10
10
type AssemblyUnit ,
11
11
type CodeChunk ,
12
- finish ,
12
+ finalize ,
13
13
initUnit ,
14
14
} from './assemblyunit'
15
15
import * as AST from './ast'
@@ -64,8 +64,8 @@ class AssemblerImpl implements Assembler {
64
64
const unit = this . setup ( )
65
65
const ast = this . parse ( )
66
66
return this . hasError ( )
67
- ? finish ( unit , { chunks : [ ] } )
68
- : finish ( unit , { ast, labels : context . labels } )
67
+ ? finalize ( unit , { chunks : [ ] } )
68
+ : finalize ( unit , { ast, labels : context . labels } )
69
69
} ,
70
70
} )
71
71
}
Original file line number Diff line number Diff line change @@ -40,10 +40,10 @@ export function initUnit(): AssemblyUnit {
40
40
}
41
41
}
42
42
43
- export function finish ( unit : AssemblyUnit , partial : Partial < AssemblyUnit > ) : AssemblyUnit {
43
+ export function finalize ( unit : AssemblyUnit , updates : Partial < AssemblyUnit > ) : AssemblyUnit {
44
44
const updated : AssemblyUnit = {
45
45
...unit ,
46
- ...partial ,
46
+ ...updates ,
47
47
}
48
48
mergeErrors ( updated . warnings )
49
49
mergeErrors ( updated . errors )
You can’t perform that action at this time.
0 commit comments