Plugins/CheckerPlugins/SyntaxChecker/pyflakes/checker.py

changeset 4465
2fbb5bdb8ddf
parent 4021
195a471c327b
child 4502
76f2b46437a6
equal deleted inserted replaced
4463:87cd9719dc23 4465:2fbb5bdb8ddf
635 635
636 def ignore(self, node): 636 def ignore(self, node):
637 pass 637 pass
638 638
639 # "stmt" type nodes 639 # "stmt" type nodes
640 DELETE = PRINT = FOR = WHILE = IF = WITH = WITHITEM = RAISE = \ 640 DELETE = PRINT = FOR = ASYNCFOR = WHILE = IF = WITH = WITHITEM = \
641 TRYFINALLY = ASSERT = EXEC = EXPR = ASSIGN = handleChildren 641 ASYNCWITH = RAISE = TRYFINALLY = ASSERT = EXEC = EXPR = \
642 ASSIGN = handleChildren
642 643
643 CONTINUE = BREAK = PASS = ignore 644 CONTINUE = BREAK = PASS = ignore
644 645
645 # "expr" type nodes 646 # "expr" type nodes
646 BOOLOP = BINOP = UNARYOP = IFEXP = DICT = SET = \ 647 BOOLOP = BINOP = UNARYOP = IFEXP = DICT = SET = \
719 self.handleNode(deco, node) 720 self.handleNode(deco, node)
720 self.LAMBDA(node) 721 self.LAMBDA(node)
721 self.addBinding(node, FunctionDefinition(node.name, node)) 722 self.addBinding(node, FunctionDefinition(node.name, node))
722 if self.withDoctest: 723 if self.withDoctest:
723 self.deferFunction(lambda: self.handleDoctests(node)) 724 self.deferFunction(lambda: self.handleDoctests(node))
725
726 ASYNCFUNCTIONDEF = FUNCTIONDEF
724 727
725 def LAMBDA(self, node): 728 def LAMBDA(self, node):
726 args = [] 729 args = []
727 annotations = [] 730 annotations = []
728 731

eric ide

mercurial