MCPcopy Create free account
hub / github.com/babel/babel / isClassProperty

Function isClassProperty

packages/babel-parser/src/parser/statement.ts:1628–1636  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1626 }
1627
1628 isClassProperty(): boolean {
1629 return (
1630 this.match(tt.eq) ||
1631 this.match(tt.semi) ||
1632 this.match(tt.braceR) ||
1633 // decorators must start a new class member
1634 (this.match(tt.at) && this.hasPrecedingLineBreak())
1635 );
1636 }
1637
1638 isClassMethod(): boolean {
1639 return this.match(tt.parenL);

Callers

nothing calls this directly

Calls 1

matchMethod · 0.80

Tested by

no test coverage detected