@@ -362,7 +362,7 @@ module ts {
362
362
public update ( scriptSnapshot : TypeScript . IScriptSnapshot , version : string , isOpen : boolean , textChangeRange : TypeScript . TextChangeRange ) : SourceFile {
363
363
// See if we are currently holding onto a syntax tree. We may not be because we're
364
364
// either a closed file, or we've just been lazy and haven't had to create the syntax
365
- // tree yet. Access the field instead of the method so we don't accidently realize
365
+ // tree yet. Access the field instead of the method so we don't accidentally realize
366
366
// the old syntax tree.
367
367
var oldSyntaxTree = this . syntaxTree ;
368
368
@@ -1378,7 +1378,7 @@ module ts {
1378
1378
var program : Program ;
1379
1379
// this checker is used to answer all LS questions except errors
1380
1380
var typeInfoResolver : TypeChecker ;
1381
- // the sole purpose of this checkes is to reutrn semantic diagnostics
1381
+ // the sole purpose of this checker is to return semantic diagnostics
1382
1382
// creation is deferred - use getFullTypeCheckChecker to get instance
1383
1383
var fullTypeCheckChecker_doNotAccessDirectly : TypeChecker ;
1384
1384
var useCaseSensitivefilenames = false ;
@@ -1524,7 +1524,7 @@ module ts {
1524
1524
sourceFile = documentRegistry . acquireDocument ( filename , compilationSettings , scriptSnapshot , version , isOpen ) ;
1525
1525
}
1526
1526
1527
- // Remeber the new sourceFile
1527
+ // Remember the new sourceFile
1528
1528
sourceFilesByName [ filename ] = sourceFile ;
1529
1529
}
1530
1530
@@ -1579,7 +1579,7 @@ module ts {
1579
1579
var firstChar = displayName . charCodeAt ( 0 ) ;
1580
1580
if ( firstChar === TypeScript . CharacterCodes . singleQuote || firstChar === TypeScript . CharacterCodes . doubleQuote ) {
1581
1581
// If the user entered name for the symbol was quoted, removing the quotes is not enough, as the name could be an
1582
- // invalid identifer name. We need to check if whatever was inside the quotes is actually a valid identifier name.
1582
+ // invalid identifier name. We need to check if whatever was inside the quotes is actually a valid identifier name.
1583
1583
displayName = TypeScript . stripStartAndEndQuotes ( displayName ) ;
1584
1584
}
1585
1585
@@ -1621,9 +1621,9 @@ module ts {
1621
1621
}
1622
1622
1623
1623
function isCompletionListBlocker ( sourceUnit : TypeScript . SourceUnitSyntax , position : number ) : boolean {
1624
- // We shouldn't be getting a possition that is outside the file because
1624
+ // We shouldn't be getting a position that is outside the file because
1625
1625
// isEntirelyInsideComment can't handle when the position is out of bounds,
1626
- // callers should be fixed, however we should be resiliant to bad inputs
1626
+ // callers should be fixed, however we should be resilient to bad inputs
1627
1627
// so we return true (this position is a blocker for getting completions)
1628
1628
if ( position < 0 || position > TypeScript . fullWidth ( sourceUnit ) ) {
1629
1629
return true ;
@@ -1713,7 +1713,7 @@ module ts {
1713
1713
var positionedToken = TypeScript . Syntax . findCompleteTokenOnLeft ( sourceUnit , position , /*includeSkippedTokens*/ true ) ;
1714
1714
1715
1715
if ( positionedToken && position === TypeScript . end ( positionedToken ) && positionedToken . kind ( ) == TypeScript . SyntaxKind . EndOfFileToken ) {
1716
- // EndOfFile token is not intresting , get the one before it
1716
+ // EndOfFile token is not interesting , get the one before it
1717
1717
positionedToken = TypeScript . previousToken ( positionedToken , /*includeSkippedTokens*/ true ) ;
1718
1718
}
1719
1719
@@ -1848,14 +1848,14 @@ module ts {
1848
1848
// // get existing members
1849
1849
// var existingMembers = compiler.getVisibleMemberSymbolsFromAST(node, document);
1850
1850
1851
- // // Add filtterd items to the completion list
1851
+ // // Add filtered items to the completion list
1852
1852
// getCompletionEntriesFromSymbols({
1853
1853
// symbols: filterContextualMembersList(contextualMembers.symbols, existingMembers, filename, position),
1854
1854
// enclosingScopeSymbol: contextualMembers.enclosingScopeSymbol
1855
1855
// }, entries);
1856
1856
//}
1857
1857
}
1858
- // Get scope memebers
1858
+ // Get scope members
1859
1859
else {
1860
1860
isMemberCompletion = false ;
1861
1861
/// TODO filter meaning based on the current context
@@ -2333,7 +2333,7 @@ module ts {
2333
2333
2334
2334
// Could not find a symbol e.g. unknown identifier
2335
2335
if ( ! symbol ) {
2336
- // Even if we did not find a symbol, we have an identifer , so there is at least
2336
+ // Even if we did not find a symbol, we have an identifier , so there is at least
2337
2337
// one reference that we know of. return than instead of undefined.
2338
2338
return [ getReferenceEntry ( node ) ] ;
2339
2339
}
@@ -2599,15 +2599,15 @@ module ts {
2599
2599
var propertySymbol = typeReferenceSymbol . members [ propertyName ] ;
2600
2600
if ( propertySymbol ) result . push ( typeReferenceSymbol . members [ propertyName ] ) ;
2601
2601
2602
- // Visit the typeReference as well to see if it directelly or indirectelly use that property
2602
+ // Visit the typeReference as well to see if it directly or indirectly use that property
2603
2603
getPropertySymbolsFromBaseTypes ( typeReferenceSymbol , propertyName , result ) ;
2604
2604
}
2605
2605
}
2606
2606
}
2607
2607
}
2608
2608
2609
2609
function isRelatableToSearchSet ( searchSymbols : Symbol [ ] , referenceSymbol : Symbol , referenceLocation : Node ) : boolean {
2610
- // Unwrap symbols to get to the root (e.g. triansient symbols as a result of widenning )
2610
+ // Unwrap symbols to get to the root (e.g. transient symbols as a result of widening )
2611
2611
var referenceSymbolTarget = typeInfoResolver . getRootSymbol ( referenceSymbol ) ;
2612
2612
2613
2613
// if it is in the list, then we are done
@@ -2625,7 +2625,7 @@ module ts {
2625
2625
}
2626
2626
}
2627
2627
2628
- // Finally, try all properties with the same name in any type the containing type extened or implemented, and
2628
+ // Finally, try all properties with the same name in any type the containing type extended or implemented, and
2629
2629
// see if any is in the list
2630
2630
if ( referenceSymbol . parent && referenceSymbol . parent . flags & ( SymbolFlags . Class | SymbolFlags . Interface ) ) {
2631
2631
var result : Symbol [ ] = [ ] ;
@@ -2781,7 +2781,7 @@ module ts {
2781
2781
// intersects with the class in the value space.
2782
2782
// To achieve that we will keep iterating until the result stabilizes.
2783
2783
2784
- // Remeber the last meaning
2784
+ // Remember the last meaning
2785
2785
var lastIterationMeaning = meaning ;
2786
2786
2787
2787
for ( var i = 0 , n = declarations . length ; i < n ; i ++ ) {
@@ -2796,7 +2796,7 @@ module ts {
2796
2796
return meaning ;
2797
2797
}
2798
2798
2799
- /// A node is considedered a writeAccess iff it is a name of a declaration or a target of an assignment
2799
+ /// A node is considered a writeAccess iff it is a name of a declaration or a target of an assignment
2800
2800
function isWriteAccess ( node : Node ) : boolean {
2801
2801
if ( node . kind === SyntaxKind . Identifier && isDeclarationOrFunctionExpressionOrCatchVariableName ( node ) ) {
2802
2802
return true ;
@@ -2873,7 +2873,7 @@ module ts {
2873
2873
var emitFilesResult = getFullTypeCheckChecker ( ) . emitFiles ( ) ;
2874
2874
emitOutput . emitOutputStatus = emitFilesResult . emitResultStatus ;
2875
2875
2876
- // Reset writer back to underfined to make sure that we produce an error message if CompilerHost.writeFile method is called when we are not in getEmitOutput
2876
+ // Reset writer back to undefined to make sure that we produce an error message if CompilerHost.writeFile method is called when we are not in getEmitOutput
2877
2877
this . writer = undefined ;
2878
2878
return emitOutput ;
2879
2879
}
@@ -3154,7 +3154,7 @@ module ts {
3154
3154
continue ;
3155
3155
}
3156
3156
3157
- // Looks to be within the trivia. See if we can find hte comment containing it.
3157
+ // Looks to be within the trivia. See if we can find the comment containing it.
3158
3158
var triviaList = matchPosition < TypeScript . start ( token ) ? token . leadingTrivia ( syntaxTree . text ) : token . trailingTrivia ( syntaxTree . text ) ;
3159
3159
var trivia = findContainingComment ( triviaList , matchPosition ) ;
3160
3160
if ( trivia === null ) {
@@ -3362,7 +3362,7 @@ module ts {
3362
3362
addResult ( start - lastTokenOrCommentEnd , TokenClass . Whitespace ) ;
3363
3363
}
3364
3364
3365
- // Remeber the end of the last token
3365
+ // Remember the end of the last token
3366
3366
lastTokenOrCommentEnd = end ;
3367
3367
}
3368
3368
0 commit comments