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

Function parseClassProperty

packages/babel-parser/src/parser/statement.ts:2162–2169  ·  view source on GitHub ↗
(
    this: Parser,
    node: Undone<N.ClassProperty>,
  )

Source from the content-addressed store, hash-verified

2160
2161 // https://tc39.es/ecma262/#prod-FieldDefinition
2162 parseClassProperty(
2163 this: Parser,
2164 node: Undone<N.ClassProperty>,
2165 ): N.ClassProperty {
2166 this.parseInitializer(node);
2167 this.semicolon();
2168 return this.finishNode(node, "ClassProperty");
2169 }
2170
2171 parseClassAccessorProperty(
2172 this: Parser,

Callers

nothing calls this directly

Calls 2

finishNodeMethod · 0.80
semicolonMethod · 0.45

Tested by

no test coverage detected