puppeteer/utils/doclint/check_public_api/test/03-property-errors/foo.js
Andrey Lushnikov 75a8d7b0c3 [doclint] Prepare doclint for more checks
This patch refactors doclint so that more checks and more generators
could be added.

This patch:
- Introduces 'Source' class, which holds file content in-memory and
  allows it to be updated.
- Introduces 'Message' class - which is a pair of a text and a type.
  Messages could have either 'error' type or 'warning' type.
2017-07-31 00:10:59 -07:00

8 lines
98 B
JavaScript

class Foo {
constructor() {
this.a = 42;
this.b = 'hello';
this.emit('done');
}
}