Hash :
57a92035
Author :
Date :
2019-02-12T20:43:31
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99
class Test {
foo( x, y = 0) {}
async bar(x, y = 0 ) {}
$ ( ) {}
awaitFoo(){}
Example({ props: { a: _A, b} } = Props) {}
f(x = fun(), y = 0) {}
}
----------------------------------------------------
[
["keyword", "class"],
["class-name", ["Test"]],
["punctuation", "{"],
["function", "foo"],
["punctuation", "("],
["parameter", [
"x",
["punctuation", ","],
" y ",
["operator", "="],
["number", "0"]
]],
["punctuation", ")"],
["punctuation", "{"],
["punctuation", "}"],
["keyword", "async"],
["function", "bar"],
["punctuation", "("],
["parameter", [
"x",
["punctuation", ","],
" y ",
["operator", "="],
["number", "0"]
]],
["punctuation", ")"],
["punctuation", "{"],
["punctuation", "}"],
["function", "$"],
["punctuation", "("],
["punctuation", ")"],
["punctuation", "{"],
["punctuation", "}"],
["function", "awaitFoo"],
["punctuation", "("],
["punctuation", ")"],
["punctuation", "{"],
["punctuation", "}"],
["function", "Example"],
["punctuation", "("],
["parameter", [
["punctuation", "{"],
" props",
["punctuation", ":"],
["punctuation", "{"],
" a",
["punctuation", ":"],
" _A",
["punctuation", ","],
" b",
["punctuation", "}"],
["punctuation", "}"],
["operator", "="],
" Props"
]],
["punctuation", ")"],
["punctuation", "{"],
["punctuation", "}"],
["function", "f"],
["punctuation", "("],
["parameter", [
"x ",
["operator", "="],
["function", "fun"],
["punctuation", "("],
["punctuation", ")"],
["punctuation", ","],
" y ",
["operator", "="],
["number", "0"]
]],
["punctuation", ")"],
["punctuation", "{"],
["punctuation", "}"],
["punctuation", "}"]
]
----------------------------------------------------
Checks for class methods.