daviis / PyDucker

A static ducking tool for python 3 source code
2 stars 2 forks source link

Improve function calling checks #91

Closed daviis closed 9 years ago

daviis commented 9 years ago

I made the ability to check functions for calling with kwargs, starargs and checks against calls where there are not enough parameters.

Also included a new exception for when the FunDefWalker finds multiple return types for a function.

daviis commented 9 years ago

Fixes issues #83 #79

JakeAlbee commented 9 years ago

I'm getting some errors on testAll with control.py, it won't finish the testing due to an attribute error

daviis commented 9 years ago

Both of those things have been fixed. visit_for wasn't using VarBean.recursiveClone and visit_Subscript was wrapping VarBean.nextSubType in an outer VarBean.

Now it just raises an exception about not being able to super type.

daviis commented 9 years ago

Should be good to go now.

JakeAlbee commented 9 years ago

So I'm still getting errors when I run testAll, on control --

IncorrectMethodException On line: 32 Can not find method: contains In class: list With args: int,

on MethodDef

    On line: 6
    Variable name: a is not in scope

    Because it was referenced before it was assigned.