@@ -345,7 +345,7 @@ export class Flow {
345
345
local = parentFunction . addLocal ( type ) ;
346
346
} else {
347
347
if ( temps && temps . length ) {
348
- local = temps . pop ( ) ;
348
+ local = temps . pop ( ) ! ;
349
349
local . type = type ;
350
350
local . flags = CommonFlags . NONE ;
351
351
} else {
@@ -404,7 +404,7 @@ export class Flow {
404
404
/** Gets the scoped local of the specified name. */
405
405
getScopedLocal ( name : string ) : Local | null {
406
406
var scopedLocals = this . scopedLocals ;
407
- if ( scopedLocals && scopedLocals . has ( name ) ) return scopedLocals . get ( name ) ;
407
+ if ( scopedLocals && scopedLocals . has ( name ) ) return scopedLocals . get ( name ) ! ;
408
408
return null ;
409
409
}
410
410
@@ -478,9 +478,9 @@ export class Flow {
478
478
lookupLocal ( name : string ) : Local | null {
479
479
var current : Flow | null = this ;
480
480
var scope : Map < String , Local > | null ;
481
- do if ( ( scope = current . scopedLocals ) && ( scope . has ( name ) ) ) return scope . get ( name ) ;
481
+ do if ( ( scope = current . scopedLocals ) && ( scope . has ( name ) ) ) return scope . get ( name ) ! ;
482
482
while ( current = current . parent ) ;
483
- return this . parentFunction . localsByName . get ( name ) ;
483
+ return this . parentFunction . localsByName . get ( name ) ! ;
484
484
}
485
485
486
486
/** Looks up the element with the specified name relative to the scope of this flow. */
@@ -868,7 +868,7 @@ export class Flow {
868
868
// overflows if the conversion does (globals are wrapped on set)
869
869
case ExpressionId . GlobalGet : {
870
870
// TODO: this is inefficient because it has to read a string
871
- let global = assert ( this . parentFunction . program . elementsByName . get ( assert ( getGlobalGetName ( expr ) ) ) ) ;
871
+ let global = assert ( this . parentFunction . program . elementsByName . get ( assert ( getGlobalGetName ( expr ) ) ) ! ) ;
872
872
assert ( global . kind == ElementKind . GLOBAL ) ;
873
873
return canConversionOverflow ( assert ( ( < Global > global ) . type ) , type ) ;
874
874
}
0 commit comments