Python3 Plugin - Function Path

Multi-Lingual Interoperability System

Python3 Plugin - Function Path

callable=[callable name]

def hello_world() # callable=hello_world

class testmap:

     @property
    def name(self) # callable=testmap.name.fget

    @name.setter
    def name(self, new_name) # callable=testmap.name.fset

    def contains(self, k: str) # callable=testmap.contains

attribute=[attribute name]

five_seconds = 5   # attribute=five_seconds

class testmap:
    static_name = 'name'    # attribute=testmap.static_name
    def __init__(self):
        self.name = 'name1'    # attribute=testmap.name

instance_required

class testmap:
    def __init__(self): # callable=testmap.__init__,instance_required
        self.name = 'name1' # attribute=testmap.name,instance_required

setter

# attribute=five_seconds,setter
five_seconds = 5

class testmap:
    def __init__(self):
        # attribute=testmap.name,instance_required,setter
        self.name = 'name1' 

getter

# attribute=five_seconds,getter
five_seconds = 5

class testmap:
    def __init__(self):
        # attribute=testmap.name,instance_required,getter
        self.name = 'name1' 

varargs

def f(self, value='default', *args) # callable=f,varargs

named_args

def f(self, value='default', **named_args) # callable=f,named_args
def g(self, *, named: str) # callable=g,named_args
def h(self, *args, **named_args) # callable=h,named_args,varargs