Skip to content

Commit 7f12b6d

Browse files
Spelling corrections.
1 parent 11b9118 commit 7f12b6d

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

src/services/services.ts

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ module ts {
362362
public update(scriptSnapshot: TypeScript.IScriptSnapshot, version: string, isOpen: boolean, textChangeRange: TypeScript.TextChangeRange): SourceFile {
363363
// See if we are currently holding onto a syntax tree. We may not be because we're
364364
// 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
366366
// the old syntax tree.
367367
var oldSyntaxTree = this.syntaxTree;
368368

@@ -1371,7 +1371,7 @@ module ts {
13711371
var program: Program;
13721372
// this checker is used to answer all LS questions except errors
13731373
var typeInfoResolver: TypeChecker;
1374-
// the sole purpose of this checkes is to reutrn semantic diagnostics
1374+
// the sole purpose of this check is to return semantic diagnostics
13751375
// creation is deferred - use getFullTypeCheckChecker to get instance
13761376
var fullTypeCheckChecker_doNotAccessDirectly: TypeChecker;
13771377
var useCaseSensitivefilenames = false;
@@ -1515,7 +1515,7 @@ module ts {
15151515
sourceFile = documentRegistry.acquireDocument(filename, compilationSettings, scriptSnapshot, version, isOpen);
15161516
}
15171517

1518-
// Remeber the new sourceFile
1518+
// Remember the new sourceFile
15191519
sourceFilesByName[filename] = sourceFile;
15201520
}
15211521

@@ -1570,7 +1570,7 @@ module ts {
15701570
var firstChar = displayName.charCodeAt(0);
15711571
if (firstChar === TypeScript.CharacterCodes.singleQuote || firstChar === TypeScript.CharacterCodes.doubleQuote) {
15721572
// If the user entered name for the symbol was quoted, removing the quotes is not enough, as the name could be an
1573-
// invalid identifer name. We need to check if whatever was inside the quotes is actually a valid identifier name.
1573+
// invalid identifier name. We need to check if whatever was inside the quotes is actually a valid identifier name.
15741574
displayName = TypeScript.stripStartAndEndQuotes(displayName);
15751575
}
15761576

@@ -1612,9 +1612,9 @@ module ts {
16121612
}
16131613

16141614
function isCompletionListBlocker(sourceUnit: TypeScript.SourceUnitSyntax, position: number): boolean {
1615-
// We shouldn't be getting a possition that is outside the file because
1615+
// We shouldn't be getting a position that is outside the file because
16161616
// isEntirelyInsideComment can't handle when the position is out of bounds,
1617-
// callers should be fixed, however we should be resiliant to bad inputs
1617+
// callers should be fixed, however we should be resilient to bad inputs
16181618
// so we return true (this position is a blocker for getting completions)
16191619
if (position < 0 || position > TypeScript.fullWidth(sourceUnit)) {
16201620
return true;
@@ -1704,12 +1704,12 @@ module ts {
17041704
var positionedToken = TypeScript.Syntax.findCompleteTokenOnLeft(sourceUnit, position, /*includeSkippedTokens*/true);
17051705

17061706
if (positionedToken && position === TypeScript.end(positionedToken) && positionedToken.kind() == TypeScript.SyntaxKind.EndOfFileToken) {
1707-
// EndOfFile token is not intresting, get the one before it
1707+
// EndOfFile token is not interesting, get the one before it
17081708
positionedToken = TypeScript. previousToken(positionedToken, /*includeSkippedTokens*/true);
17091709
}
17101710

17111711
if (positionedToken && position === TypeScript.end(positionedToken) && positionedToken.kind() === TypeScript.SyntaxKind.IdentifierName) {
1712-
// The caret is at the end of an identifier, the decession to provide completion depends on the previous token
1712+
// The caret is at the end of an identifier, the decision to provide completion depends on the previous token
17131713
positionedToken = TypeScript.previousToken(positionedToken, /*includeSkippedTokens*/true);
17141714
}
17151715

@@ -1839,14 +1839,14 @@ module ts {
18391839
// // get existing members
18401840
// var existingMembers = compiler.getVisibleMemberSymbolsFromAST(node, document);
18411841

1842-
// // Add filtterd items to the completion list
1842+
// // Add filtered items to the completion list
18431843
// getCompletionEntriesFromSymbols({
18441844
// symbols: filterContextualMembersList(contextualMembers.symbols, existingMembers, filename, position),
18451845
// enclosingScopeSymbol: contextualMembers.enclosingScopeSymbol
18461846
// }, entries);
18471847
//}
18481848
}
1849-
// Get scope memebers
1849+
// Get scope members
18501850
else {
18511851
isMemberCompletion = false;
18521852
/// TODO filter meaning based on the current context
@@ -1870,7 +1870,7 @@ module ts {
18701870

18711871
function getCompletionEntryDetails(filename: string, position: number, entryName: string) {
18721872
// Note: No need to call synchronizeHostData, as we have captured all the data we need
1873-
// in the getCompletionsAtPosition erlier
1873+
// in the getCompletionsAtPosition earlier
18741874
filename = TypeScript.switchToForwardSlashes(filename);
18751875

18761876
var session = activeCompletionSession;
@@ -2434,7 +2434,7 @@ module ts {
24342434

24352435
// Could not find a symbol e.g. unknown identifier
24362436
if (!symbol) {
2437-
// Even if we did not find a symbol, we have an identifer, so there is at least
2437+
// Even if we did not find a symbol, we have an identifier, so there is at least
24382438
// one reference that we know of. return that instead of undefined.
24392439
return [getReferenceEntryFromNode(node)];
24402440
}
@@ -2824,15 +2824,15 @@ module ts {
28242824
var propertySymbol = typeReferenceSymbol.members[propertyName];
28252825
if (propertySymbol) result.push(typeReferenceSymbol.members[propertyName]);
28262826

2827-
// Visit the typeReference as well to see if it directelly or indirectelly use that property
2827+
// Visit the typeReference as well to see if it directly or indirectly use that property
28282828
getPropertySymbolsFromBaseTypes(typeReferenceSymbol, propertyName, result);
28292829
}
28302830
}
28312831
}
28322832
}
28332833

28342834
function isRelatableToSearchSet(searchSymbols: Symbol[], referenceSymbol: Symbol, referenceLocation: Node): boolean {
2835-
// Unwrap symbols to get to the root (e.g. triansient symbols as a result of widenning)
2835+
// Unwrap symbols to get to the root (e.g. transient symbols as a result of widening)
28362836
var referenceSymbolTarget = typeInfoResolver.getRootSymbol(referenceSymbol);
28372837

28382838
// if it is in the list, then we are done
@@ -2850,7 +2850,7 @@ module ts {
28502850
}
28512851
}
28522852

2853-
// Finally, try all properties with the same name in any type the containing type extened or implemented, and
2853+
// Finally, try all properties with the same name in any type the containing type extend or implemented, and
28542854
// see if any is in the list
28552855
if (referenceSymbol.parent && referenceSymbol.parent.flags & (SymbolFlags.Class | SymbolFlags.Interface)) {
28562856
var result: Symbol[] = [];
@@ -2913,7 +2913,7 @@ module ts {
29132913
case SyntaxKind.ImportDeclaration:
29142914
return SearchMeaning.Value | SearchMeaning.Type | SearchMeaning.Namespace;
29152915
}
2916-
Debug.fail("Unkown declaration type");
2916+
Debug.fail("Unknown declaration type");
29172917
}
29182918

29192919
function isTypeReference(node: Node): boolean {
@@ -2994,7 +2994,7 @@ module ts {
29942994
// intersects with the class in the value space.
29952995
// To achieve that we will keep iterating until the result stabilizes.
29962996

2997-
// Remeber the last meaning
2997+
// Remember the last meaning
29982998
var lastIterationMeaning = meaning;
29992999

30003000
for (var i = 0, n = declarations.length; i < n; i++) {
@@ -3022,7 +3022,7 @@ module ts {
30223022
return new ReferenceEntry(node.getSourceFile().filename, TypeScript.TextSpan.fromBounds(start, end), isWriteAccess(node));
30233023
}
30243024

3025-
/// A node is considedered a writeAccess iff it is a name of a declaration or a target of an assignment
3025+
/// A node is considered a writeAccess iff it is a name of a declaration or a target of an assignment
30263026
function isWriteAccess(node: Node): boolean {
30273027
if (node.kind === SyntaxKind.Identifier && isDeclarationOrFunctionExpressionOrCatchVariableName(node)) {
30283028
return true;
@@ -3308,7 +3308,7 @@ module ts {
33083308
var preamble = matchArray[1];
33093309
var matchPosition = matchArray.index + preamble.length;
33103310

3311-
// Ok, we have found a match in the file. This is ony an acceptable match if
3311+
// Ok, we have found a match in the file. This is only an acceptable match if
33123312
// it is contained within a comment.
33133313
var token = TypeScript.findToken(syntaxTree.sourceUnit(), matchPosition);
33143314

@@ -3318,7 +3318,7 @@ module ts {
33183318
continue;
33193319
}
33203320

3321-
// Looks to be within the trivia. See if we can find hte comment containing it.
3321+
// Looks to be within the trivia. See if we can find the comment containing it.
33223322
var triviaList = matchPosition < TypeScript.start(token) ? token.leadingTrivia(syntaxTree.text) : token.trailingTrivia(syntaxTree.text);
33233323
var trivia = findContainingComment(triviaList, matchPosition);
33243324
if (trivia === null) {
@@ -3526,7 +3526,7 @@ module ts {
35263526
addResult(start - lastTokenOrCommentEnd, TokenClass.Whitespace);
35273527
}
35283528

3529-
// Remeber the end of the last token
3529+
// Remember the end of the last token
35303530
lastTokenOrCommentEnd = end;
35313531
}
35323532

0 commit comments

Comments
 (0)