@@ -1656,7 +1656,7 @@ module ts {
16561656 }
16571657
16581658 if ( syntaxTree !== null ) {
1659- Debug . assert ( sourceFile ) ;
1659+ Debug . assert ( sourceFile !== undefined ) ;
16601660 // All done, ensure state is up to date
16611661 this . currentFileVersion = version ;
16621662 this . currentFilename = filename ;
@@ -1864,9 +1864,9 @@ module ts {
18641864 ) : SourceFile {
18651865
18661866 var bucket = getBucketForCompilationSettings ( compilationSettings , /*createIfMissing*/ false ) ;
1867- Debug . assert ( bucket ) ;
1867+ Debug . assert ( bucket !== undefined ) ;
18681868 var entry = lookUp ( bucket , filename ) ;
1869- Debug . assert ( entry ) ;
1869+ Debug . assert ( entry !== undefined ) ;
18701870
18711871 if ( entry . sourceFile . isOpen === isOpen && entry . sourceFile . version === version ) {
18721872 return entry . sourceFile ;
@@ -1878,7 +1878,7 @@ module ts {
18781878
18791879 function releaseDocument ( filename : string , compilationSettings : CompilerOptions ) : void {
18801880 var bucket = getBucketForCompilationSettings ( compilationSettings , false ) ;
1881- Debug . assert ( bucket ) ;
1881+ Debug . assert ( bucket !== undefined ) ;
18821882
18831883 var entry = lookUp ( bucket , filename ) ;
18841884 entry . refCount -- ;
@@ -2549,7 +2549,7 @@ module ts {
25492549 mappedNode = precedingToken ;
25502550 }
25512551
2552- Debug . assert ( mappedNode , "Could not map a Fidelity node to an AST node" ) ;
2552+ Debug . assert ( mappedNode !== undefined , "Could not map a Fidelity node to an AST node" ) ;
25532553
25542554 // Get the completions
25552555 activeCompletionSession = {
@@ -2603,7 +2603,7 @@ module ts {
26032603 if ( containingObjectLiteral ) {
26042604 var objectLiteral = < ObjectLiteral > ( mappedNode . kind === SyntaxKind . ObjectLiteral ? mappedNode : getAncestor ( mappedNode , SyntaxKind . ObjectLiteral ) ) ;
26052605
2606- Debug . assert ( objectLiteral ) ;
2606+ Debug . assert ( objectLiteral !== undefined ) ;
26072607
26082608 isMemberCompletion = true ;
26092609
@@ -2656,7 +2656,7 @@ module ts {
26562656 var symbol = lookUp ( activeCompletionSession . symbols , entryName ) ;
26572657 if ( symbol ) {
26582658 var type = session . typeChecker . getTypeOfSymbol ( symbol ) ;
2659- Debug . assert ( type , "Could not find type for symbol" ) ;
2659+ Debug . assert ( type !== undefined , "Could not find type for symbol" ) ;
26602660 var completionEntry = createCompletionEntry ( symbol , session . typeChecker ) ;
26612661 // TODO(drosen): Right now we just permit *all* semantic meanings when calling 'getSymbolKind'
26622662 // which is permissible given that it is backwards compatible; but really we should consider
@@ -2755,7 +2755,7 @@ module ts {
27552755 }
27562756 if ( rootSymbolFlags & SymbolFlags . GetAccessor ) return ScriptElementKind . memberVariableElement ;
27572757 if ( rootSymbolFlags & SymbolFlags . SetAccessor ) return ScriptElementKind . memberVariableElement ;
2758- Debug . assert ( rootSymbolFlags & SymbolFlags . Method ) ;
2758+ Debug . assert ( ( rootSymbolFlags & SymbolFlags . Method ) !== undefined ) ;
27592759 } ) || ScriptElementKind . memberFunctionElement ;
27602760 }
27612761 return ScriptElementKind . memberVariableElement ;
@@ -5155,7 +5155,7 @@ module ts {
51555155 descriptor = descriptors [ i ] ;
51565156 }
51575157 }
5158- Debug . assert ( descriptor ) ;
5158+ Debug . assert ( descriptor !== undefined ) ;
51595159
51605160 // We don't want to match something like 'TODOBY', so we make sure a non
51615161 // letter/digit follows the match.
0 commit comments