Skip to content
This repository has been archived by the owner on Dec 19, 2023. It is now read-only.

uintroduce intermediate attribute KeywordAttr and add token information #16

Merged
merged 2 commits into from
Feb 3, 2020

Conversation

aryx
Copy link
Collaborator

@aryx aryx commented Feb 3, 2020

this should also help This should help semgrep/semgrep#29

@aryx aryx requested a review from ulziibay February 3, 2020 23:07
transform some calls in NamedAttr

will help again

test plan:
$ ~/pfff/pfff_test -dump_generic less_attributes.py
Pr(
  [DefStmt(
     ({name=("foo", ());
       attrs=[NamedAttr(("alpha", ()), []); NamedAttr(("beta", ()), []);
              NamedAttr(("charlie", ()), [Arg(L(String(("xyz", ()))))])];
       tparams=[]; info={id_resolved=Ref(None); id_type=Ref(None); }; },
      FuncDef(
        {fparams=[]; frettype=None;
         fbody=ExprStmt(
...
@aryx aryx merged commit 133e842 into master Feb 3, 2020
@aryx aryx deleted the attribute_with_tok branch September 7, 2020 14:10
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant