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

Function isClassProperty

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

matchMethod · 0.80

Tested by

no test coverage detected