style: typos fixed - https://github.com/vlajos/misspell-fixer (#22975)
PR Close #22975
This commit is contained in:

committed by
Matias Niemelä

parent
f739f756ce
commit
de90314304
@ -255,7 +255,7 @@ class ExpressionDiagnosticsVisitor extends RecursiveTemplateAstVisitor {
|
||||
|
||||
this.push(ast);
|
||||
|
||||
// Find directive that refernces this template
|
||||
// Find directive that references this template
|
||||
this.directiveSummary =
|
||||
ast.directives.map(d => d.directive).find(d => hasTemplateReference(d.type)) !;
|
||||
|
||||
|
@ -157,7 +157,7 @@ export interface SymbolTable {
|
||||
*/
|
||||
export interface Signature {
|
||||
/**
|
||||
* The arguments of the signture. The order of `argumetnts.symbols()` must be in the order
|
||||
* The arguments of the signture. The order of `arguments.symbols()` must be in the order
|
||||
* of argument declaration.
|
||||
*/
|
||||
readonly arguments: SymbolTable;
|
||||
@ -216,7 +216,7 @@ export enum BuiltinType {
|
||||
}
|
||||
|
||||
/**
|
||||
* The kinds of defintion.
|
||||
* The kinds of definition.
|
||||
*
|
||||
* @experimental
|
||||
*/
|
||||
|
@ -310,7 +310,7 @@ export class MetadataBundler {
|
||||
const exportAlls = new Set<string>();
|
||||
for (const symbol of exportedSymbols) {
|
||||
if (symbol.reexport) {
|
||||
// symbol.declaration is guarenteed to be defined during the phase this method is called.
|
||||
// symbol.declaration is guaranteed to be defined during the phase this method is called.
|
||||
const declaration = symbol.declaration !;
|
||||
const module = declaration.module;
|
||||
if (declaration !.name == '*') {
|
||||
|
@ -468,7 +468,7 @@ export class Evaluator {
|
||||
if (!isMetadataModuleReferenceExpression(typeReference) &&
|
||||
typeReferenceNode.typeArguments && typeReferenceNode.typeArguments.length) {
|
||||
const args = typeReferenceNode.typeArguments.map(element => this.evaluateNode(element));
|
||||
// TODO: Remove typecast when upgraded to 2.0 as it will be corretly inferred.
|
||||
// TODO: Remove typecast when upgraded to 2.0 as it will be correctly inferred.
|
||||
// Some versions of 1.9 do not infer this correctly.
|
||||
(<MetadataImportedSymbolReferenceExpression>typeReference).arguments = args;
|
||||
}
|
||||
|
@ -83,7 +83,7 @@ export class Symbols {
|
||||
}
|
||||
const from = stripQuotes(importDecl.moduleSpecifier.getText());
|
||||
if (importDecl.importClause.name) {
|
||||
// An `import <identifier> form <module-specifier>` clause. Record the defualt symbol.
|
||||
// An `import <identifier> form <module-specifier>` clause. Record the default symbol.
|
||||
symbols.set(
|
||||
importDecl.importClause.name.text,
|
||||
{__symbolic: 'reference', module: from, default: true});
|
||||
|
@ -73,7 +73,7 @@ export interface CompilerOptions extends ts.CompilerOptions {
|
||||
// Whether to generate a flat module index of the given name and the corresponding
|
||||
// flat module metadata. This option is intended to be used when creating flat
|
||||
// modules similar to how `@angular/core` and `@angular/common` are packaged.
|
||||
// When this option is used the `package.json` for the library should refered to the
|
||||
// When this option is used the `package.json` for the library should referred to the
|
||||
// generated flat module index instead of the library index file. When using this
|
||||
// option only one .metadata.json file is produced that contains all the metadata
|
||||
// necessary for symbols exported from the library index.
|
||||
@ -223,7 +223,7 @@ export interface CompilerHost extends ts.CompilerHost {
|
||||
/**
|
||||
* Load a referenced resource either statically or asynchronously. If the host returns a
|
||||
* `Promise<string>` it is assumed the user of the corresponding `Program` will call
|
||||
* `loadNgStructureAsync()`. Returing `Promise<string>` outside `loadNgStructureAsync()` will
|
||||
* `loadNgStructureAsync()`. Returning `Promise<string>` outside `loadNgStructureAsync()` will
|
||||
* cause a diagnostics diagnostic error or an exception to be thrown.
|
||||
*/
|
||||
readResource?(fileName: string): Promise<string>|string;
|
||||
@ -323,7 +323,7 @@ export interface Program {
|
||||
getNgStructuralDiagnostics(cancellationToken?: ts.CancellationToken): ReadonlyArray<Diagnostic>;
|
||||
|
||||
/**
|
||||
* Retrieve the semantic diagnostics from TypeScript. This is equivilent to calling
|
||||
* Retrieve the semantic diagnostics from TypeScript. This is equivalent to calling
|
||||
* `getTsProgram().getSemanticDiagnostics()` directly and is included for completeness.
|
||||
*/
|
||||
getTsSemanticDiagnostics(sourceFile?: ts.SourceFile, cancellationToken?: ts.CancellationToken):
|
||||
|
Reference in New Issue
Block a user