PR Close #22975
This commit is contained in:
Veres Lajos
2018-03-10 17:14:58 +00:00
committed by Matias Niemelä
parent f739f756ce
commit de90314304
62 changed files with 112 additions and 108 deletions

View File

@ -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 == '*') {

View File

@ -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;
}

View File

@ -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});