@@ -502,7 +502,7 @@ namespace ts {
502502 spacesToRemoveAfterAsterisk = 0 ;
503503 }
504504
505- // Analyse text on this line
505+ // Analyze text on this line
506506 while ( pos < end && ! isLineBreak ( sourceFile . text . charCodeAt ( pos ) ) ) {
507507 const ch = sourceFile . text . charAt ( pos ) ;
508508 if ( ch === "@" ) {
@@ -641,7 +641,7 @@ namespace ts {
641641 paramHelpStringMargin = undefined ;
642642 }
643643
644- // If this is the start of another tag, continue with the loop in seach of param tag with symbol name
644+ // If this is the start of another tag, continue with the loop in search of param tag with symbol name
645645 if ( sourceFile . text . charCodeAt ( pos ) === CharacterCodes . at ) {
646646 continue ;
647647 }
@@ -2822,7 +2822,7 @@ namespace ts {
28222822 }
28232823
28242824 // Check if the language version has changed since we last created a program; if they are the same,
2825- // it is safe to reuse the souceFiles ; if not, then the shape of the AST can change, and the oldSourceFile
2825+ // it is safe to reuse the sourceFiles ; if not, then the shape of the AST can change, and the oldSourceFile
28262826 // can not be reused. we have to dump all syntax trees and create new ones.
28272827 if ( ! changesInCompilationSettingsAffectSyntax ) {
28282828 // Check if the old program had this file already
@@ -2916,7 +2916,7 @@ namespace ts {
29162916 }
29172917
29182918 /**
2919- * getSemanticDiagnostiscs return array of Diagnostics. If '-d' is not enabled, only report semantic errors
2919+ * getSemanticDiagnostics return array of Diagnostics. If '-d' is not enabled, only report semantic errors
29202920 * If '-d' enabled, report both semantic and emitter errors
29212921 */
29222922 function getSemanticDiagnostics ( fileName : string ) : Diagnostic [ ] {
@@ -3725,7 +3725,7 @@ namespace ts {
37253725 * do not occur at the current position and have not otherwise been typed.
37263726 */
37273727 function filterNamedImportOrExportCompletionItems ( exportsOfModule : Symbol [ ] , namedImportsOrExports : ImportOrExportSpecifier [ ] ) : Symbol [ ] {
3728- const exisingImportsOrExports : Map < boolean > = { } ;
3728+ const existingImportsOrExports : Map < boolean > = { } ;
37293729
37303730 for ( const element of namedImportsOrExports ) {
37313731 // If this is the current item we are editing right now, do not filter it out
@@ -3734,14 +3734,14 @@ namespace ts {
37343734 }
37353735
37363736 const name = element . propertyName || element . name ;
3737- exisingImportsOrExports [ name . text ] = true ;
3737+ existingImportsOrExports [ name . text ] = true ;
37383738 }
37393739
3740- if ( isEmpty ( exisingImportsOrExports ) ) {
3740+ if ( isEmpty ( existingImportsOrExports ) ) {
37413741 return exportsOfModule ;
37423742 }
37433743
3744- return filter ( exportsOfModule , e => ! lookUp ( exisingImportsOrExports , e . name ) ) ;
3744+ return filter ( exportsOfModule , e => ! lookUp ( existingImportsOrExports , e . name ) ) ;
37453745 }
37463746
37473747 /**
@@ -5574,7 +5574,7 @@ namespace ts {
55745574 }
55755575
55765576 // If the symbol is an import we would like to find it if we are looking for what it imports.
5577- // So consider it visibile outside its declaration scope.
5577+ // So consider it visible outside its declaration scope.
55785578 if ( symbol . flags & SymbolFlags . Alias ) {
55795579 return undefined ;
55805580 }
@@ -5974,12 +5974,12 @@ namespace ts {
59745974 // The search set contains at least the current symbol
59755975 let result = [ symbol ] ;
59765976
5977- // If the symbol is an alias, add what it alaises to the list
5977+ // If the symbol is an alias, add what it aliases to the list
59785978 if ( isImportSpecifierSymbol ( symbol ) ) {
59795979 result . push ( typeChecker . getAliasedSymbol ( symbol ) ) ;
59805980 }
59815981
5982- // For export specifiers, the exported name can be refering to a local symbol, e.g.:
5982+ // For export specifiers, the exported name can be referring to a local symbol, e.g.:
59835983 // import {a} from "mod";
59845984 // export {a as somethingElse}
59855985 // We want the *local* declaration of 'a' as declared in the import,
@@ -6015,7 +6015,7 @@ namespace ts {
60156015
60166016 // If the symbol.valueDeclaration is a property parameter declaration,
60176017 // we should include both parameter declaration symbol and property declaration symbol
6018- // Parameter Declaration symbol is only visible within function scope, so the symbol is stored in contructor .locals.
6018+ // Parameter Declaration symbol is only visible within function scope, so the symbol is stored in constructor .locals.
60196019 // Property Declaration symbol is a member of the class, so the symbol is stored in its class Declaration.symbol.members
60206020 if ( symbol . valueDeclaration && symbol . valueDeclaration . kind === SyntaxKind . Parameter &&
60216021 isParameterPropertyDeclaration ( < ParameterDeclaration > symbol . valueDeclaration ) ) {
@@ -6041,9 +6041,9 @@ namespace ts {
60416041 /**
60426042 * Find symbol of the given property-name and add the symbol to the given result array
60436043 * @param symbol a symbol to start searching for the given propertyName
6044- * @param propertyName a name of property to serach for
6044+ * @param propertyName a name of property to search for
60456045 * @param result an array of symbol of found property symbols
6046- * @param previousIterationSymbolsCache a cache of symbol from previous iterations of calling this function to prevent infinite revisitng of the same symbol.
6046+ * @param previousIterationSymbolsCache a cache of symbol from previous iterations of calling this function to prevent infinite revisiting of the same symbol.
60476047 * The value of previousIterationSymbol is undefined when the function is first called.
60486048 */
60496049 function getPropertySymbolsFromBaseTypes ( symbol : Symbol , propertyName : string , result : Symbol [ ] ,
@@ -7386,12 +7386,12 @@ namespace ts {
73867386 // comment portion.
73877387 const singleLineCommentStart = / (?: \/ \/ + \s * ) / . source ;
73887388 const multiLineCommentStart = / (?: \/ \* + \s * ) / . source ;
7389- const anyNumberOfSpacesAndAsterixesAtStartOfLine = / (?: ^ (?: \s | \* ) * ) / . source ;
7389+ const anyNumberOfSpacesAndAsterisksAtStartOfLine = / (?: ^ (?: \s | \* ) * ) / . source ;
73907390
73917391 // Match any of the above three TODO comment start regexps.
73927392 // Note that the outermost group *is* a capture group. We want to capture the preamble
73937393 // so that we can determine the starting position of the TODO comment match.
7394- const preamble = "(" + anyNumberOfSpacesAndAsterixesAtStartOfLine + "|" + singleLineCommentStart + "|" + multiLineCommentStart + ")" ;
7394+ const preamble = "(" + anyNumberOfSpacesAndAsterisksAtStartOfLine + "|" + singleLineCommentStart + "|" + multiLineCommentStart + ")" ;
73957395
73967396 // Takes the descriptors and forms a regexp that matches them as if they were literals.
73977397 // For example, if the descriptors are "TODO(jason)" and "HACK", then this will be:
0 commit comments