~ubuntu-branches/ubuntu/utopic/mako/utopic-proposed

« back to all changes in this revision

Viewing changes to mako/parsetree.py

  • Committer: Package Import Robot
  • Author(s): Piotr Ożarowski
  • Date: 2014-06-10 20:38:26 UTC
  • mfrom: (1.4.7)
  • Revision ID: package-import@ubuntu.com-20140610203826-5gtppywd9v3gf14a
Tags: 1.0.0-1
* New upstream release
* Add python-changelog and python-sphinx-paramlinks to Build-Depends
  (needed while rebuilding documentation)
* Enable Python 3.X tests during build (add necessary packages to
  Build-Depends)
* Update links to upstream changelog (now points to changelog.rst)
* Add lintian override for source-is-missing doc/searchindex.js
  (this file is generated by sphinx-build, all sources are in the tarball)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# mako/parsetree.py
2
 
# Copyright (C) 2006-2013 the Mako authors and contributors <see AUTHORS file>
 
2
# Copyright (C) 2006-2014 the Mako authors and contributors <see AUTHORS file>
3
3
#
4
4
# This module is part of Mako and is released under
5
5
# the MIT License: http://www.opensource.org/licenses/mit-license.php
437
437
        return self.function_decl.get_argument_expressions(**kw)
438
438
 
439
439
    def declared_identifiers(self):
440
 
        return self.function_decl.argnames
 
440
        return self.function_decl.allargnames
441
441
 
442
442
    def undeclared_identifiers(self):
443
443
        res = []
451
451
        ).union(
452
452
            self.expression_undeclared_identifiers
453
453
        ).difference(
454
 
            self.function_decl.argnames
 
454
            self.function_decl.allargnames
455
455
        )
456
456
 
457
457
class BlockTag(Tag):
502
502
        return self.body_decl.get_argument_expressions(**kw)
503
503
 
504
504
    def declared_identifiers(self):
505
 
        return self.body_decl.argnames
 
505
        return self.body_decl.allargnames
506
506
 
507
507
    def undeclared_identifiers(self):
508
508
        return (self.filter_args.\
524
524
                                            **self.exception_kwargs)
525
525
 
526
526
    def declared_identifiers(self):
527
 
        return self.code.declared_identifiers.union(self.body_decl.argnames)
 
527
        return self.code.declared_identifiers.union(self.body_decl.allargnames)
528
528
 
529
529
    def undeclared_identifiers(self):
530
530
        return self.code.undeclared_identifiers.\
554
554
                                    **self.exception_kwargs)
555
555
 
556
556
    def declared_identifiers(self):
557
 
        return self.code.declared_identifiers.union(self.body_decl.argnames)
 
557
        return self.code.declared_identifiers.union(self.body_decl.allargnames)
558
558
 
559
559
    def undeclared_identifiers(self):
560
560
        return self.code.undeclared_identifiers.\
589
589
                                **self.exception_kwargs)
590
590
 
591
591
    def declared_identifiers(self):
592
 
        return self.body_decl.argnames
 
592
        return self.body_decl.allargnames
593
593
 
594
594