prism/tests/languages/javascript!+js-extras/method_feature.test

35 lines
606 B
Plaintext

foo.bar();
foo.bar.call();
this.#bar();
----------------------------------------------------
[
"foo",
["punctuation", "."],
["method", ["bar"]],
["punctuation", "("],
["punctuation", ")"],
["punctuation", ";"],
"\r\nfoo",
["punctuation", "."],
["method", ["bar"]],
["punctuation", "."],
["method", ["call"]],
["punctuation", "("],
["punctuation", ")"],
["punctuation", ";"],
["keyword", "this"],
["punctuation", "."],
["method", ["#bar"]],
["punctuation", "("],
["punctuation", ")"],
["punctuation", ";"]
]
----------------------------------------------------
Checks for methods.