@@ -1656,7 +1656,7 @@ module ts {
1656
1656
}
1657
1657
1658
1658
if ( syntaxTree !== null ) {
1659
- Debug . assert ( sourceFile ) ;
1659
+ Debug . assert ( sourceFile !== undefined ) ;
1660
1660
// All done, ensure state is up to date
1661
1661
this . currentFileVersion = version ;
1662
1662
this . currentFilename = filename ;
@@ -1864,9 +1864,9 @@ module ts {
1864
1864
) : SourceFile {
1865
1865
1866
1866
var bucket = getBucketForCompilationSettings ( compilationSettings , /*createIfMissing*/ false ) ;
1867
- Debug . assert ( bucket ) ;
1867
+ Debug . assert ( bucket !== undefined ) ;
1868
1868
var entry = lookUp ( bucket , filename ) ;
1869
- Debug . assert ( entry ) ;
1869
+ Debug . assert ( entry !== undefined ) ;
1870
1870
1871
1871
if ( entry . sourceFile . isOpen === isOpen && entry . sourceFile . version === version ) {
1872
1872
return entry . sourceFile ;
@@ -1878,7 +1878,7 @@ module ts {
1878
1878
1879
1879
function releaseDocument ( filename : string , compilationSettings : CompilerOptions ) : void {
1880
1880
var bucket = getBucketForCompilationSettings ( compilationSettings , false ) ;
1881
- Debug . assert ( bucket ) ;
1881
+ Debug . assert ( bucket !== undefined ) ;
1882
1882
1883
1883
var entry = lookUp ( bucket , filename ) ;
1884
1884
entry . refCount -- ;
@@ -2549,7 +2549,7 @@ module ts {
2549
2549
mappedNode = precedingToken ;
2550
2550
}
2551
2551
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" ) ;
2553
2553
2554
2554
// Get the completions
2555
2555
activeCompletionSession = {
@@ -2603,7 +2603,7 @@ module ts {
2603
2603
if ( containingObjectLiteral ) {
2604
2604
var objectLiteral = < ObjectLiteral > ( mappedNode . kind === SyntaxKind . ObjectLiteral ? mappedNode : getAncestor ( mappedNode , SyntaxKind . ObjectLiteral ) ) ;
2605
2605
2606
- Debug . assert ( objectLiteral ) ;
2606
+ Debug . assert ( objectLiteral !== undefined ) ;
2607
2607
2608
2608
isMemberCompletion = true ;
2609
2609
@@ -2656,7 +2656,7 @@ module ts {
2656
2656
var symbol = lookUp ( activeCompletionSession . symbols , entryName ) ;
2657
2657
if ( symbol ) {
2658
2658
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" ) ;
2660
2660
var completionEntry = createCompletionEntry ( symbol , session . typeChecker ) ;
2661
2661
// TODO(drosen): Right now we just permit *all* semantic meanings when calling 'getSymbolKind'
2662
2662
// which is permissible given that it is backwards compatible; but really we should consider
@@ -2755,7 +2755,7 @@ module ts {
2755
2755
}
2756
2756
if ( rootSymbolFlags & SymbolFlags . GetAccessor ) return ScriptElementKind . memberVariableElement ;
2757
2757
if ( rootSymbolFlags & SymbolFlags . SetAccessor ) return ScriptElementKind . memberVariableElement ;
2758
- Debug . assert ( rootSymbolFlags & SymbolFlags . Method ) ;
2758
+ Debug . assert ( ( rootSymbolFlags & SymbolFlags . Method ) !== undefined ) ;
2759
2759
} ) || ScriptElementKind . memberFunctionElement ;
2760
2760
}
2761
2761
return ScriptElementKind . memberVariableElement ;
@@ -5155,7 +5155,7 @@ module ts {
5155
5155
descriptor = descriptors [ i ] ;
5156
5156
}
5157
5157
}
5158
- Debug . assert ( descriptor ) ;
5158
+ Debug . assert ( descriptor !== undefined ) ;
5159
5159
5160
5160
// We don't want to match something like 'TODOBY', so we make sure a non
5161
5161
// letter/digit follows the match.
0 commit comments