# File lib/puppet/parser/scope.rb, line 477 477: def find_resource_type(type) 478: # It still works fine without the type == 'class' short-cut, but it is a lot slower. 479: return nil if ["class", "node"].include? type.to_s.downcase 480: find_builtin_resource_type(type) || find_defined_resource_type(type) 481: end