Method: Puppet::Pops::Types::TypeParser#interpret_QualifiedReference
- Defined in:
- lib/puppet/pops/types/type_parser.rb
#interpret_QualifiedReference(name_ast, context) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
274 275 276 277 278 279 280 281 282 283 284 285 286 287 |
# File 'lib/puppet/pops/types/type_parser.rb', line 274 def interpret_QualifiedReference(name_ast, context) name = name_ast.value found = self.class.type_map[name] if found found else loader = loader_from_context(name_ast, context) unless loader.nil? type = loader.load(:type, name) type = type.resolve(loader) unless type.nil? end type || TypeFactory.type_reference(name_ast.cased_value) end end |