|
|
@ -640,14 +640,15 @@ class Contract(ChildSlither, SourceMapping): |
|
|
|
################################################################################### |
|
|
|
################################################################################### |
|
|
|
################################################################################### |
|
|
|
################################################################################### |
|
|
|
|
|
|
|
|
|
|
|
def get_summary(self): |
|
|
|
def get_summary(self, include_shadowed=True): |
|
|
|
""" Return the function summary |
|
|
|
""" Return the function summary |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
:param include_shadowed: boolean to indicate if shadowed functions should be included (default True) |
|
|
|
Returns: |
|
|
|
Returns: |
|
|
|
(str, list, list, list, list): (name, inheritance, variables, fuction summaries, modifier summaries) |
|
|
|
(str, list, list, list, list): (name, inheritance, variables, fuction summaries, modifier summaries) |
|
|
|
""" |
|
|
|
""" |
|
|
|
func_summaries = [f.get_summary() for f in self.functions] |
|
|
|
func_summaries = [f.get_summary() for f in self.functions if (not f.is_shadowed or include_shadowed)] |
|
|
|
modif_summaries = [f.get_summary() for f in self.modifiers] |
|
|
|
modif_summaries = [f.get_summary() for f in self.modifiers if (not f.is_shadowed or include_shadowed)] |
|
|
|
return (self.name, [str(x) for x in self.inheritance], [str(x) for x in self.variables], func_summaries, modif_summaries) |
|
|
|
return (self.name, [str(x) for x in self.inheritance], [str(x) for x in self.variables], func_summaries, modif_summaries) |
|
|
|
|
|
|
|
|
|
|
|
def is_signature_only(self): |
|
|
|
def is_signature_only(self): |
|
|
|