Beispiel #1
0
 def __init__(self, usr: str, loc: ci.SourceLocation):
     self.usr = usr  # Unified Symbol Resolution (USR) for the function
     self.loc = Location(loc)
Beispiel #2
0
 def __init__(self, usr: str, context: IndexContext):
     self.usr = usr
     self.loc = Location(context.top_cursor().location)
     self.try_block_stack = context.try_block_stack.copy()
 def __init__(self, context: IndexContext):
     self.loc = Location(context.top_cursor().location)
     self.exception_type = None  # None means "catch all"
 def __init__(self, context: IndexContext):
     self.loc = Location(context.top_cursor().location)
     self.catchers = []  # List[Catcher]
 def __init__(self, context: IndexContext):
     self.fun_usr = context.top_function()  # Containing function USR
     self.loc = Location(context.top_cursor().location)
     self.try_block_stack = context.try_block_stack.copy()
     self.exception_type = None