File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ module.exports.fullname = function fullname({ item }) {
35
35
36
36
module . exports . inheritance = function ( { item, build } ) {
37
37
if ( ! isNodeType ( 'ContractDefinition' , item ) ) {
38
- throw new Error ( 'used inherited-items on non-contract' ) ;
38
+ throw new Error ( 'inheritance modifier used on non-contract' ) ;
39
39
}
40
40
41
41
return item . linearizedBaseContracts
@@ -65,14 +65,14 @@ module.exports['has-internal-variables'] = function ({ item }) {
65
65
66
66
module . exports . functions = function ( { item } ) {
67
67
return [
68
- ...[ ... findAll ( 'FunctionDefinition' , item ) ] . filter ( f => f . visibility !== 'private' ) ,
69
- ...[ ... findAll ( 'VariableDeclaration' , item ) ] . filter ( f => f . visibility === 'public' ) ,
68
+ ...findAll ( 'FunctionDefinition' , item ) . filter ( f => f . visibility !== 'private' ) ,
69
+ ...findAll ( 'VariableDeclaration' , item ) . filter ( f => f . visibility === 'public' ) ,
70
70
] ;
71
71
} ;
72
72
73
73
module . exports . returns2 = function ( { item } ) {
74
74
if ( isNodeType ( 'VariableDeclaration' , item ) ) {
75
- return [ { type : item . typeDescriptions . typeString } ] ;
75
+ return [ { type : item . typeName . typeDescriptions . typeString } ] ;
76
76
} else {
77
77
return item . returns ;
78
78
}
You can’t perform that action at this time.
0 commit comments