mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
27 lines
436 B
JavaScript
27 lines
436 B
JavaScript
class Foo {
|
|
#privDecl = 3;
|
|
#if = "if"; // "keywords" are ok.
|
|
reads() {
|
|
var foo = this.#privUse;
|
|
var bar = this["#publicComputed"]
|
|
var baz = this.#if;
|
|
}
|
|
|
|
equals(o) {
|
|
return this.#privDecl === o.#privDecl;
|
|
}
|
|
|
|
writes() {
|
|
this.#privDecl = 4;
|
|
this["#public"] = 5;
|
|
}
|
|
|
|
#privSecond; // is a PropNode, not a PropRef. Doesn't matter.
|
|
|
|
["#publicField"] = 6;
|
|
|
|
calls() {
|
|
this.#privDecl();
|
|
new this.#privDecl();
|
|
}
|
|
} |