75a8d7b0c3
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.
8 lines
98 B
JavaScript
8 lines
98 B
JavaScript
class Foo {
|
|
constructor() {
|
|
this.a = 42;
|
|
this.b = 'hello';
|
|
this.emit('done');
|
|
}
|
|
}
|