|
1 |
| -foo = function () {} |
| 1 | +foo = function ( x, y) {} |
2 | 2 | {foo: function () {}}
|
3 |
| -bar = function baz () {} |
| 3 | +bar = async function baz (x ) {} |
| 4 | +baz = async(x) => x |
4 | 5 | fooBar = x => x
|
| 6 | +fooBar = ( x, y ) => x |
5 | 7 | ಠ_ಠ = () => {}
|
6 |
| -Ƞȡ_҇ = (ಠ, Ƞ = 2) => {} |
| 8 | +Ƞȡ_҇ = async (ಠ, Ƞ = 2) => {} |
7 | 9 |
|
8 | 10 | ----------------------------------------------------
|
9 | 11 |
|
10 | 12 | [
|
11 |
| - ["function-variable", "foo"], ["operator", "="], ["keyword", "function"], |
12 |
| - ["punctuation", "("], ["punctuation", ")"], ["punctuation", "{"], ["punctuation", "}"], |
13 |
| - ["punctuation", "{"], ["function-variable", "foo"], ["punctuation", ":"], ["keyword", "function"], |
14 |
| - ["punctuation", "("], ["punctuation", ")"], ["punctuation", "{"],["punctuation","}"],["punctuation","}"], |
15 |
| - ["function-variable", "bar"], ["operator", "="], ["keyword", "function"], ["function", "baz"], |
16 |
| - ["punctuation", "("], ["punctuation", ")"], ["punctuation", "{"], ["punctuation", "}"], |
17 |
| - ["function-variable", "fooBar"], ["operator", "="], " x ", ["operator", "=>"], " x\r\n", |
18 |
| - ["function-variable", "ಠ_ಠ"], ["operator", "="], ["punctuation", "("], ["punctuation", ")"], |
19 |
| - ["operator", "=>"], ["punctuation", "{"], ["punctuation", "}"], |
20 |
| - ["function-variable", "Ƞȡ_҇"], ["operator", "="], |
21 |
| - ["punctuation", "("], "ಠ", ["punctuation", ","], " Ƞ ", ["operator", "="], ["number", "2"], ["punctuation", ")"], |
22 |
| - ["operator", "=>"], ["punctuation", "{"], ["punctuation", "}"] |
| 13 | + ["function-variable", "foo"], |
| 14 | + ["operator", "="], |
| 15 | + ["keyword", "function"], |
| 16 | + ["punctuation", "("], |
| 17 | + ["parameter", [ |
| 18 | + "x", |
| 19 | + ["punctuation", ","], |
| 20 | + " y" |
| 21 | + ]], |
| 22 | + ["punctuation", ")"], |
| 23 | + ["punctuation", "{"], |
| 24 | + ["punctuation", "}"], |
| 25 | + |
| 26 | + ["punctuation", "{"], |
| 27 | + ["function-variable", "foo"], |
| 28 | + ["punctuation", ":"], |
| 29 | + ["keyword", "function"], |
| 30 | + ["punctuation", "("], |
| 31 | + ["punctuation", ")"], |
| 32 | + ["punctuation", "{"], |
| 33 | + ["punctuation","}"], |
| 34 | + ["punctuation","}"], |
| 35 | + |
| 36 | + ["function-variable", "bar"], |
| 37 | + ["operator", "="], |
| 38 | + ["keyword", "async"], |
| 39 | + ["keyword", "function"], |
| 40 | + ["function", "baz"], |
| 41 | + ["punctuation", "("], |
| 42 | + ["parameter", [ |
| 43 | + "x" |
| 44 | + ]], |
| 45 | + ["punctuation", ")"], |
| 46 | + ["punctuation", "{"], |
| 47 | + ["punctuation", "}"], |
| 48 | + |
| 49 | + ["function-variable", "baz"], |
| 50 | + ["operator", "="], |
| 51 | + ["keyword", "async"], |
| 52 | + ["punctuation", "("], |
| 53 | + ["parameter", [ |
| 54 | + "x" |
| 55 | + ]], |
| 56 | + ["punctuation", ")"], |
| 57 | + ["operator", "=>"], " x\r\n", |
| 58 | + |
| 59 | + ["function-variable", "fooBar"], |
| 60 | + ["operator", "="], |
| 61 | + ["parameter", [ |
| 62 | + "x" |
| 63 | + ]], |
| 64 | + ["operator", "=>"], " x\r\n", |
| 65 | + |
| 66 | + ["function-variable", "fooBar"], |
| 67 | + ["operator", "="], |
| 68 | + ["punctuation", "("], |
| 69 | + ["parameter", [ |
| 70 | + "x", |
| 71 | + ["punctuation", ","], |
| 72 | + " y" |
| 73 | + ]], |
| 74 | + ["punctuation", ")"], |
| 75 | + ["operator", "=>"], " x\r\n", |
| 76 | + |
| 77 | + ["function-variable", "ಠ_ಠ"], |
| 78 | + ["operator", "="], |
| 79 | + ["punctuation", "("], |
| 80 | + ["punctuation", ")"], |
| 81 | + ["operator", "=>"], |
| 82 | + ["punctuation", "{"], |
| 83 | + ["punctuation", "}"], |
| 84 | + |
| 85 | + ["function-variable", "Ƞȡ_҇"], |
| 86 | + ["operator", "="], |
| 87 | + ["keyword", "async"], |
| 88 | + ["punctuation", "("], |
| 89 | + ["parameter", [ |
| 90 | + "ಠ", |
| 91 | + ["punctuation", ","], |
| 92 | + " Ƞ ", |
| 93 | + ["operator", "="], |
| 94 | + ["number", "2"] |
| 95 | + ]], |
| 96 | + ["punctuation", ")"], |
| 97 | + ["operator", "=>"], |
| 98 | + ["punctuation", "{"], |
| 99 | + ["punctuation", "}"] |
23 | 100 | ]
|
24 | 101 |
|
25 | 102 | ----------------------------------------------------
|
|
0 commit comments