mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-26 15:10:06 +08:00
26 lines
470 B
TypeScript
Vendored
26 lines
470 B
TypeScript
Vendored
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
|
|
}
|
|
|
|
ok() {
|
|
return this.public_method();
|
|
// ^ method
|
|
}
|
|
}
|