-
Notifications
You must be signed in to change notification settings - Fork 12.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
More tests, use different regex class for pragma capture
- Loading branch information
Showing
14 changed files
with
227 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
tests/baselines/reference/inlineJsxFactoryOverridesCompilerOption.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
//// [tests/cases/conformance/jsx/inline/inlineJsxFactoryOverridesCompilerOption.tsx] //// | ||
|
||
//// [renderer.d.ts] | ||
declare global { | ||
namespace JSX { | ||
interface IntrinsicElements { | ||
[e: string]: any; | ||
} | ||
} | ||
} | ||
export function dom(): void; | ||
export { dom as p }; | ||
//// [reacty.tsx] | ||
/** @jsx dom */ | ||
import {dom} from "./renderer"; | ||
<h></h> | ||
//// [index.tsx] | ||
import { p } from "./renderer"; | ||
<h></h> | ||
|
||
|
||
//// [reacty.js] | ||
"use strict"; | ||
exports.__esModule = true; | ||
/** @jsx dom */ | ||
var renderer_1 = require("./renderer"); | ||
renderer_1.dom("h", null); | ||
//// [index.js] | ||
"use strict"; | ||
exports.__esModule = true; | ||
var renderer_1 = require("./renderer"); | ||
renderer_1.p("h", null); |
39 changes: 39 additions & 0 deletions
39
tests/baselines/reference/inlineJsxFactoryOverridesCompilerOption.symbols
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
=== tests/cases/conformance/jsx/inline/renderer.d.ts === | ||
declare global { | ||
>global : Symbol(global, Decl(renderer.d.ts, 0, 0)) | ||
|
||
namespace JSX { | ||
>JSX : Symbol(JSX, Decl(renderer.d.ts, 0, 16)) | ||
|
||
interface IntrinsicElements { | ||
>IntrinsicElements : Symbol(IntrinsicElements, Decl(renderer.d.ts, 1, 19)) | ||
|
||
[e: string]: any; | ||
>e : Symbol(e, Decl(renderer.d.ts, 3, 13)) | ||
} | ||
} | ||
} | ||
export function dom(): void; | ||
>dom : Symbol(dom, Decl(renderer.d.ts, 6, 1)) | ||
|
||
export { dom as p }; | ||
>dom : Symbol(p, Decl(renderer.d.ts, 8, 8)) | ||
>p : Symbol(p, Decl(renderer.d.ts, 8, 8)) | ||
|
||
=== tests/cases/conformance/jsx/inline/reacty.tsx === | ||
/** @jsx dom */ | ||
import {dom} from "./renderer"; | ||
>dom : Symbol(dom, Decl(reacty.tsx, 1, 8)) | ||
|
||
<h></h> | ||
>h : Symbol(JSX.IntrinsicElements, Decl(renderer.d.ts, 1, 19)) | ||
>h : Symbol(JSX.IntrinsicElements, Decl(renderer.d.ts, 1, 19)) | ||
|
||
=== tests/cases/conformance/jsx/inline/index.tsx === | ||
import { p } from "./renderer"; | ||
>p : Symbol(p, Decl(index.tsx, 0, 8)) | ||
|
||
<h></h> | ||
>h : Symbol(JSX.IntrinsicElements, Decl(renderer.d.ts, 1, 19)) | ||
>h : Symbol(JSX.IntrinsicElements, Decl(renderer.d.ts, 1, 19)) | ||
|
41 changes: 41 additions & 0 deletions
41
tests/baselines/reference/inlineJsxFactoryOverridesCompilerOption.types
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
=== tests/cases/conformance/jsx/inline/renderer.d.ts === | ||
declare global { | ||
>global : any | ||
|
||
namespace JSX { | ||
>JSX : any | ||
|
||
interface IntrinsicElements { | ||
>IntrinsicElements : IntrinsicElements | ||
|
||
[e: string]: any; | ||
>e : string | ||
} | ||
} | ||
} | ||
export function dom(): void; | ||
>dom : () => void | ||
|
||
export { dom as p }; | ||
>dom : () => void | ||
>p : () => void | ||
|
||
=== tests/cases/conformance/jsx/inline/reacty.tsx === | ||
/** @jsx dom */ | ||
import {dom} from "./renderer"; | ||
>dom : () => void | ||
|
||
<h></h> | ||
><h></h> : any | ||
>h : any | ||
>h : any | ||
|
||
=== tests/cases/conformance/jsx/inline/index.tsx === | ||
import { p } from "./renderer"; | ||
>p : () => void | ||
|
||
<h></h> | ||
><h></h> : any | ||
>h : any | ||
>h : any | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
tests/cases/conformance/jsx/inline/inlineJsxFactoryOverridesCompilerOption.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// @jsx: react | ||
// @jsxFactory: p | ||
// @filename: renderer.d.ts | ||
declare global { | ||
namespace JSX { | ||
interface IntrinsicElements { | ||
[e: string]: any; | ||
} | ||
} | ||
} | ||
export function dom(): void; | ||
export { dom as p }; | ||
// @filename: reacty.tsx | ||
/** @jsx dom */ | ||
import {dom} from "./renderer"; | ||
<h></h> | ||
// @filename: index.tsx | ||
import { p } from "./renderer"; | ||
<h></h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters