Skip to content

Commit 625a253

Browse files
author
Kanchalai Tanglertsampan
committed
Rename isObjectLiteralElement to isobjectLiteralElementLike
1 parent 3c74558 commit 625a253

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/compiler/transformers/es6.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1940,7 +1940,7 @@ namespace ts {
19401940
temp,
19411941
setNodeEmitFlags(
19421942
createObjectLiteral(
1943-
visitNodes(properties, visitor, isObjectLiteralElement, 0, numInitialProperties),
1943+
visitNodes(properties, visitor, isObjectLiteralElementLike, 0, numInitialProperties),
19441944
/*location*/ undefined,
19451945
node.multiLine
19461946
),

src/compiler/transformers/generators.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1020,7 +1020,7 @@ namespace ts {
10201020
const temp = declareLocal();
10211021
emitAssignment(temp,
10221022
createObjectLiteral(
1023-
visitNodes(properties, visitor, isObjectLiteralElement, 0, numInitialProperties),
1023+
visitNodes(properties, visitor, isObjectLiteralElementLike, 0, numInitialProperties),
10241024
/*location*/ undefined,
10251025
multiLine
10261026
)

src/compiler/utilities.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3736,7 +3736,7 @@ namespace ts {
37363736
|| kind === SyntaxKind.SemicolonClassElement;
37373737
}
37383738

3739-
export function isObjectLiteralElement(node: Node): node is ObjectLiteralElement {
3739+
export function isObjectLiteralElementLike(node: Node): node is ObjectLiteralElementLike {
37403740
const kind = node.kind;
37413741
return kind === SyntaxKind.PropertyAssignment
37423742
|| kind === SyntaxKind.ShorthandPropertyAssignment

src/compiler/visitor.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -772,7 +772,7 @@ namespace ts {
772772

773773
case SyntaxKind.ObjectLiteralExpression:
774774
return updateObjectLiteral(<ObjectLiteralExpression>node,
775-
visitNodes((<ObjectLiteralExpression>node).properties, visitor, isObjectLiteralElement));
775+
visitNodes((<ObjectLiteralExpression>node).properties, visitor, isObjectLiteralElementLike));
776776

777777
case SyntaxKind.PropertyAccessExpression:
778778
return updatePropertyAccess(<PropertyAccessExpression>node,

0 commit comments

Comments
 (0)