nvim-treesitter/tests/query/highlights/ecma/test.ts
2022-09-11 04:16:06 -07:00

25 lines
480 B
TypeScript

class H {
pub_field = "Hello";
// ^ property
#priv_field = "World!";
// ^ property
#private_method() {
// ^ method
return `${this.pub_field} -- ${this.#priv_field}`;
// ^ property
// ^ property
}
public_method() {
// ^ method
return this.#private_method();
// ^ method.call
}
ok() {
return this.public_method();
// ^ method.call
}
}