File tree Expand file tree Collapse file tree 1 file changed +13
-13
lines changed
packages/stencil/src/stencil-core-utils/lib Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -15,20 +15,20 @@ function addCodeIntoArray(
15
15
) : StringChange [ ] {
16
16
const nodes = findNodes ( source , ts . SyntaxKind . ObjectLiteralExpression ) ;
17
17
let node = nodes [ 0 ] ;
18
- const matchingProperties : ts . ObjectLiteralElement [ ] = node && (
19
- node as ts . ObjectLiteralExpression
20
- ) . properties
21
- . filter (
22
- ( prop : ts . ObjectLiteralElementLike ) =>
23
- prop . kind == ts . SyntaxKind . PropertyAssignment
24
- )
25
- . filter ( ( prop : ts . PropertyAssignment ) => {
26
- if ( prop . name . kind === ts . SyntaxKind . Identifier ) {
27
- return ( prop . name as ts . Identifier ) . getText ( source ) == identifier ;
28
- }
18
+ const matchingProperties : ts . ObjectLiteralElement [ ] =
19
+ node &&
20
+ ( node as ts . ObjectLiteralExpression ) . properties
21
+ . filter (
22
+ ( prop : ts . ObjectLiteralElementLike ) =>
23
+ prop . kind == ts . SyntaxKind . PropertyAssignment
24
+ )
25
+ . filter ( ( prop : ts . PropertyAssignment ) => {
26
+ if ( prop . name . kind === ts . SyntaxKind . Identifier ) {
27
+ return ( prop . name as ts . Identifier ) . getText ( source ) == identifier ;
28
+ }
29
29
30
- return false ;
31
- } ) ;
30
+ return false ;
31
+ } ) ;
32
32
33
33
if ( ! matchingProperties ) {
34
34
return [ ] ;
You can’t perform that action at this time.
0 commit comments