These patches replace the existing ASTSet class with a new class
for managing access to loaded code in the parser.  This gives us
the ability to protect access to that code, so we can add mutexes
where appropriate.

lib/puppet/parser/ast/definition.rb         |    2 +-
lib/puppet/parser/ast/node.rb               |    2 +-
lib/puppet/parser/ast/resource_reference.rb |    4 +-
lib/puppet/parser/compiler.rb               |   10 +-
lib/puppet/parser/functions/defined.rb      |    2 +-
lib/puppet/parser/loaded_code.rb            |   85 +++++++++++++++
lib/puppet/parser/parser_support.rb         |  111 +++++++++-----------
lib/puppet/parser/resource/reference.rb     |    8 +-
lib/puppet/parser/scope.rb                  |   12 +-
spec/unit/parser/ast/resource_reference.rb  |   12 +-
spec/unit/parser/compiler.rb                |   40 +++-----
spec/unit/parser/loaded_code.rb             |  106 ++++++++++++++++++
spec/unit/parser/parser.rb                  |    2 +-
test/language/ast/resource.rb               |    2 +-
test/language/ast/resource_reference.rb     |    2 +-
test/language/functions.rb                  |    4 +-
test/language/parser.rb                     |  156 +++++++++++----------------
test/language/resource.rb                   |    2 +-
test/language/scope.rb                      |    6 +-
test/lib/puppettest/parsertesting.rb        |    2 +-
20 files changed, 354 insertions(+), 216 deletions(-)


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/puppet-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to