Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2486db7

Browse files
petebacondarwinkara
authored andcommitted
docs(ngcc): tidy up typos etc in comments (angular#36989)
This file had a few small typos and other issues that have now been fixed in this commit............................. PR Close angular#36989
1 parent 0672a0e commit 2486db7

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

packages/compiler-cli/ngcc/src/host/commonjs_umd_utils.ts

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,19 @@ export interface ExportStatement extends ts.ExpressionStatement {
2525
}
2626

2727
/**
28-
* A CommonJS or UMD re-export statement.
28+
* A CommonJS or UMD wildcard re-export statement.
2929
*
30-
* In CommonJS/UMD, re-export statements can have several forms (depending, for example, on whether
30+
* The CommonJS or UMD version of `export * from 'blah';`.
31+
*
32+
* These statements can have several forms (depending, for example, on whether
3133
* the TypeScript helpers are imported or emitted inline). The expression can have one of the
3234
* following forms:
3335
* - `__export(firstArg)`
3436
* - `__exportStar(firstArg)`
3537
* - `tslib.__export(firstArg, exports)`
3638
* - `tslib.__exportStar(firstArg, exports)`
3739
*
38-
* In all cases, we only care about `firstApp`, which is the first argument of the re-export call
40+
* In all cases, we only care about `firstArg`, which is the first argument of the re-export call
3941
* expression and can be either a `require('...')` call or an identifier (initialized via a
4042
* `require('...')` call).
4143
*/
@@ -76,7 +78,7 @@ export function findRequireCallReference(id: ts.Identifier, checker: ts.TypeChec
7678

7779
/**
7880
* Check whether the specified `ts.Statement` is an export statement, i.e. an expression statement
79-
* of the form: `export.<foo> = <bar>`
81+
* of the form: `exports.<foo> = <bar>`
8082
*/
8183
export function isExportStatement(stmt: ts.Statement): stmt is ExportStatement {
8284
return ts.isExpressionStatement(stmt) && ts.isBinaryExpression(stmt.expression) &&
@@ -87,8 +89,8 @@ export function isExportStatement(stmt: ts.Statement): stmt is ExportStatement {
8789
}
8890

8991
/**
90-
* Check whether the specified `ts.Statement` is a re-export statement, i.e. an expression statement
91-
* of one of the following forms:
92+
* Check whether the specified `ts.Statement` is a wildcard re-export statement.
93+
* I.E. an expression statement of one of the following forms:
9294
* - `__export(<foo>)`
9395
* - `__exportStar(<foo>)`
9496
* - `tslib.__export(<foo>, exports)`

0 commit comments

Comments
 (0)