123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- // ---------------------
- // Should pass through unaltered
- // ---------------------
- var f1 = function({value}) {
- return "somestring"
- }
- function f2({value}) {
- return "somestring"
- }
- class f3 {
- method1() {
- return "whatever"
- }
- }
- var f4 = (
- <div>
- {(() => <span></span>)()}
- </div>
- )
- // Known component which doesn't sit directly on the `Program` node get left alone
- {
- var Component5c = function () {
- function Component5c () {}
- return Component5c
- }()
- }
- // ---------------------
- // Not supported
- // ---------------------
- // High-order things will be hard to catch
- var jsxChunk = <div>{value}</div>
- function UnsupportedComponent1({value}) {
- return function() {
- return jsxChunk
- }
- }
- var a = {
- smoke: function() {},
- Component1d: function ({value}) {
- return <div>{value}</div>
- }
- }
- var external = function() {
- var internal = function() {
- return <div />
- }
- return internal
- }
|