MCPcopy Index your code
hub / github.com/numpy/numpy / analyzeargs

Function analyzeargs

numpy/f2py/crackfortran.py:3142–3166  ·  view source on GitHub ↗
(block)

Source from the content-addressed store, hash-verified

3140
3141
3142def analyzeargs(block):
3143 setmesstext(block)
3144 implicitrules, _ = buildimplicitrules(block)
3145 if 'args' not in block:
3146 block['args'] = []
3147 args = []
3148 for a in block['args']:
3149 a = expr2name(a, block, args)
3150 args.append(a)
3151 block['args'] = args
3152 if 'entry' in block:
3153 for k, args1 in list(block['entry'].items()):
3154 for a in args1:
3155 if a not in block['vars']:
3156 block['vars'][a] = {}
3157
3158 for b in block['body']:
3159 if b['name'] in args:
3160 if 'externals' not in block:
3161 block['externals'] = []
3162 if b['name'] not in block['externals']:
3163 block['externals'].append(b['name'])
3164 if 'result' in block and block['result'] not in block['vars']:
3165 block['vars'][block['result']] = {}
3166 return block
3167
3168
3169determineexprtype_re_1 = re.compile(r'\A\(.+?,.+?\)\Z', re.I)

Callers 1

postcrackFunction · 0.85

Calls 4

setmesstextFunction · 0.85
buildimplicitrulesFunction · 0.85
expr2nameFunction · 0.85
itemsMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…