46 lines
910 B
Plaintext
46 lines
910 B
Plaintext
foo.bar = function() {};
|
|
foo.bar = async () => {};
|
|
this.bar = () => {};
|
|
|
|
----------------------------------------------------
|
|
|
|
[
|
|
"foo",
|
|
["punctuation", "."],
|
|
["method-variable", ["bar"]],
|
|
["operator", "="],
|
|
["keyword", "function"],
|
|
["punctuation", "("],
|
|
["punctuation", ")"],
|
|
["punctuation", "{"],
|
|
["punctuation", "}"],
|
|
["punctuation", ";"],
|
|
|
|
"\r\nfoo",
|
|
["punctuation", "."],
|
|
["method-variable", ["bar"]],
|
|
["operator", "="],
|
|
["keyword", "async"],
|
|
["punctuation", "("],
|
|
["punctuation", ")"],
|
|
["arrow", "=>"],
|
|
["punctuation", "{"],
|
|
["punctuation", "}"],
|
|
["punctuation", ";"],
|
|
|
|
["keyword", "this"],
|
|
["punctuation", "."],
|
|
["method-variable", ["bar"]],
|
|
["operator", "="],
|
|
["punctuation", "("],
|
|
["punctuation", ")"],
|
|
["arrow", "=>"],
|
|
["punctuation", "{"],
|
|
["punctuation", "}"],
|
|
["punctuation", ";"]
|
|
]
|
|
|
|
----------------------------------------------------
|
|
|
|
Checks for method variables.
|