Lines Matching refs:method
45 """Spin through the 'method code index' section and extract all
46 method signatures. When found, they are added to a result list."""
49 # |[abcd] com/example/app/Class.method:(args)return
50 # capturing the method signature
57 # Look for a method name
63 # Add the captured signature to the method list
67 def CallsMethod(codes, method):
68 """Spin through all the input method signatures. For each one, return
69 whether or not there is method invokation line in the codes section that
70 lists the method as the target."""
75 # Find the next reference to the method signature
76 match = codes.find(method, start)
81 # Find the beginning of the line the method reference is on
85 # and the method reference, then it is a call to that method rather
86 # than the beginning of the code section for that method.
90 start = match + len(method)
112 methods = FindMethods(sections['method code index'])
119 for method in methods:
120 if not CallsMethod(codes, method):
121 print "\t", method