Skip to content

Commit d296a10

Browse files
committed
Rename bindings to namedBindings in ImportClause
1 parent 69fef6e commit d296a10

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/compiler/parser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4621,7 +4621,7 @@ module ts {
46214621
// parse namespace or named imports
46224622
if (!importClause.defaultBinding ||
46234623
parseOptional(SyntaxKind.CommaToken)) {
4624-
importClause.bindings = token === SyntaxKind.AsteriskToken ? parseNamespaceImport() : parseNamedImports();
4624+
importClause.namedBindings = token === SyntaxKind.AsteriskToken ? parseNamespaceImport() : parseNamedImports();
46254625
}
46264626

46274627
parseExpected(SyntaxKind.FromKeyword);

src/compiler/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -875,7 +875,7 @@ module ts {
875875

876876
export interface ImportClause extends Node {
877877
defaultBinding?: Identifier;
878-
bindings?: NamespaceImport | NamedImports;
878+
namedBindings?: NamespaceImport | NamedImports;
879879
}
880880

881881
export interface NamespaceImport extends Declaration {

0 commit comments

Comments
 (0)