Skip to content

Commit 97ac647

Browse files
Copilotjakebailey
andcommitted
Accept initial baselines for jsxNestedIndentation test
Co-authored-by: jakebailey <[email protected]>
1 parent 73b9745 commit 97ac647

File tree

3 files changed

+83
-0
lines changed

3 files changed

+83
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
//// [tests/cases/compiler/jsxNestedIndentation.tsx] ////
2+
3+
//// [jsxNestedIndentation.tsx]
4+
declare var React: any;
5+
declare function Child(props: { children?: any }): any;
6+
function Test() {
7+
return <Child>
8+
<Child>
9+
<Child></Child>
10+
</Child>
11+
</Child>
12+
}
13+
14+
15+
//// [jsxNestedIndentation.js]
16+
function Test() {
17+
return React.createElement(Child, null, React.createElement(Child, null, React.createElement(Child, null)));
18+
}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
//// [tests/cases/compiler/jsxNestedIndentation.tsx] ////
2+
3+
=== jsxNestedIndentation.tsx ===
4+
declare var React: any;
5+
>React : Symbol(React, Decl(jsxNestedIndentation.tsx, 0, 11))
6+
7+
declare function Child(props: { children?: any }): any;
8+
>Child : Symbol(Child, Decl(jsxNestedIndentation.tsx, 0, 23))
9+
>props : Symbol(props, Decl(jsxNestedIndentation.tsx, 1, 23))
10+
>children : Symbol(children, Decl(jsxNestedIndentation.tsx, 1, 31))
11+
12+
function Test() {
13+
>Test : Symbol(Test, Decl(jsxNestedIndentation.tsx, 1, 55))
14+
15+
return <Child>
16+
>Child : Symbol(Child, Decl(jsxNestedIndentation.tsx, 0, 23))
17+
18+
<Child>
19+
>Child : Symbol(Child, Decl(jsxNestedIndentation.tsx, 0, 23))
20+
21+
<Child></Child>
22+
>Child : Symbol(Child, Decl(jsxNestedIndentation.tsx, 0, 23))
23+
>Child : Symbol(Child, Decl(jsxNestedIndentation.tsx, 0, 23))
24+
25+
</Child>
26+
>Child : Symbol(Child, Decl(jsxNestedIndentation.tsx, 0, 23))
27+
28+
</Child>
29+
>Child : Symbol(Child, Decl(jsxNestedIndentation.tsx, 0, 23))
30+
}
31+
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
//// [tests/cases/compiler/jsxNestedIndentation.tsx] ////
2+
3+
=== jsxNestedIndentation.tsx ===
4+
declare var React: any;
5+
>React : any
6+
7+
declare function Child(props: { children?: any }): any;
8+
>Child : (props: { children?: any; }) => any
9+
>props : { children?: any; }
10+
>children : any
11+
12+
function Test() {
13+
>Test : () => any
14+
15+
return <Child>
16+
><Child> <Child> <Child></Child> </Child> </Child> : any
17+
>Child : (props: { children?: any; }) => any
18+
19+
<Child>
20+
><Child> <Child></Child> </Child> : any
21+
>Child : (props: { children?: any; }) => any
22+
23+
<Child></Child>
24+
><Child></Child> : any
25+
>Child : (props: { children?: any; }) => any
26+
>Child : (props: { children?: any; }) => any
27+
28+
</Child>
29+
>Child : (props: { children?: any; }) => any
30+
31+
</Child>
32+
>Child : (props: { children?: any; }) => any
33+
}
34+

0 commit comments

Comments
 (0)