2007-04-06 | paulb | file changeset files shortlog | Introduced sets throughout the code. Created a simplified package containing essential classes. Changed the annotation visitor so that nodes are not returned from each visitor method. Added a check on the context when invoking subprograms so that the extra Self node is not inserted into the arguments for non-instance methods or functions. |
paulb@160 | 1 | class A: |
paulb@160 | 2 | pass |
paulb@160 | 3 | |
paulb@160 | 4 | def f1(a): |
paulb@160 | 5 | c = a.x |
paulb@160 | 6 | |
paulb@160 | 7 | def f2(a): |
paulb@160 | 8 | c = a.x |
paulb@160 | 9 | |
paulb@160 | 10 | def g(a): |
paulb@160 | 11 | a.x = 456 |
paulb@160 | 12 | |
paulb@160 | 13 | a = A() |
paulb@160 | 14 | f1(a) |
paulb@160 | 15 | g(a) |
paulb@160 | 16 | f2(a) |