@@ -59,19 +59,19 @@ export class Validator {
59
59
}
60
60
61
61
// All defined parameters should have natspec
62
- validateParameters ( node : ErrorDefinition | FunctionDefinition | ModifierDefinition , natspecParams : ( string | undefined ) [ ] ) : string [ ] {
62
+ private validateParameters ( node : ErrorDefinition | FunctionDefinition | ModifierDefinition , natspecParams : ( string | undefined ) [ ] ) : string [ ] {
63
63
let definedParameters = node . vParameters . vParameters . map ( ( p ) => p . name ) ;
64
64
return definedParameters . filter ( ( p ) => ! natspecParams . includes ( p ) ) . map ( ( p ) => `@param ${ p } is missing` ) ;
65
65
}
66
66
67
67
// All members of a struct should have natspec
68
- validateMembers ( node : StructDefinition , natspecParams : ( string | undefined ) [ ] ) : string [ ] {
68
+ private validateMembers ( node : StructDefinition , natspecParams : ( string | undefined ) [ ] ) : string [ ] {
69
69
let members = node . vMembers . map ( ( p ) => p . name ) ;
70
70
return members . filter ( ( m ) => ! natspecParams . includes ( m ) ) . map ( ( m ) => `@param ${ m } is missing` ) ;
71
71
}
72
72
73
73
// All returned parameters should have natspec
74
- validateReturnParameters ( node : FunctionDefinition , natspecReturns : ( string | undefined ) [ ] ) : string [ ] {
74
+ private validateReturnParameters ( node : FunctionDefinition , natspecReturns : ( string | undefined ) [ ] ) : string [ ] {
75
75
let alerts : string [ ] = [ ] ;
76
76
let functionReturns = node . vReturnParameters . vParameters . map ( ( p ) => p . name ) ;
77
77
@@ -93,7 +93,7 @@ export class Validator {
93
93
return alerts ;
94
94
}
95
95
96
- requiresInheritdoc ( node : NodeToProcess ) : boolean {
96
+ private requiresInheritdoc ( node : NodeToProcess ) : boolean {
97
97
let _requiresInheritdoc : boolean = false ;
98
98
99
99
// External or public function
0 commit comments