(block)
| 3177 | |
| 3178 | |
| 3179 | def analyzeargs(block): |
| 3180 | setmesstext(block) |
| 3181 | implicitrules, _ = buildimplicitrules(block) |
| 3182 | if 'args' not in block: |
| 3183 | block['args'] = [] |
| 3184 | args = [] |
| 3185 | for a in block['args']: |
| 3186 | a = expr2name(a, block, args) |
| 3187 | args.append(a) |
| 3188 | block['args'] = args |
| 3189 | if 'entry' in block: |
| 3190 | for k, args1 in list(block['entry'].items()): |
| 3191 | for a in args1: |
| 3192 | if a not in block['vars']: |
| 3193 | block['vars'][a] = {} |
| 3194 | |
| 3195 | for b in block['body']: |
| 3196 | if b['name'] in args: |
| 3197 | if 'externals' not in block: |
| 3198 | block['externals'] = [] |
| 3199 | if b['name'] not in block['externals']: |
| 3200 | block['externals'].append(b['name']) |
| 3201 | if 'result' in block and block['result'] not in block['vars']: |
| 3202 | block['vars'][block['result']] = {} |
| 3203 | return block |
| 3204 | |
| 3205 | determineexprtype_re_1 = re.compile(r'\A\(.+?,.+?\)\Z', re.I) |
| 3206 | determineexprtype_re_2 = re.compile(r'\A[+-]?\d+(_(?P<name>\w+)|)\Z', re.I) |
no test coverage detected