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

Function parseClassProperty

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

finishNodeMethod · 0.80
semicolonMethod · 0.45

Tested by

no test coverage detected