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 }) {
3535
3636module . exports . inheritance = function ( { item, build } ) {
3737 if ( ! isNodeType ( 'ContractDefinition' , item ) ) {
38- throw new Error ( 'used inherited-items on non-contract' ) ;
38+ throw new Error ( 'inheritance modifier used on non-contract' ) ;
3939 }
4040
4141 return item . linearizedBaseContracts
@@ -65,14 +65,14 @@ module.exports['has-internal-variables'] = function ({ item }) {
6565
6666module . exports . functions = function ( { item } ) {
6767 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' ) ,
7070 ] ;
7171} ;
7272
7373module . exports . returns2 = function ( { item } ) {
7474 if ( isNodeType ( 'VariableDeclaration' , item ) ) {
75- return [ { type : item . typeDescriptions . typeString } ] ;
75+ return [ { type : item . typeName . typeDescriptions . typeString } ] ;
7676 } else {
7777 return item . returns ;
7878 }
You can’t perform that action at this time.
0 commit comments