MCPcopy Index your code
hub / github.com/jquery/esprima / parseClassElementList

Method parseClassElementList

src/parser.ts:3262–3277  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3260 }
3261
3262 parseClassElementList(): Node.Property[] {
3263 const body: Node.Property[] = [];
3264 const hasConstructor = { value: false };
3265
3266 this.expect('{');
3267 while (!this.match('}')) {
3268 if (this.match(';')) {
3269 this.nextToken();
3270 } else {
3271 body.push(this.parseClassElement(hasConstructor));
3272 }
3273 }
3274 this.expect('}');
3275
3276 return body;
3277 }
3278
3279 parseClassBody(): Node.ClassBody {
3280 const node = this.createNode();

Callers 1

parseClassBodyMethod · 0.95

Calls 5

expectMethod · 0.95
matchMethod · 0.95
nextTokenMethod · 0.95
parseClassElementMethod · 0.95
pushMethod · 0.80

Tested by

no test coverage detected