Method: Puppet::Pops::Types::TypeMismatchDescriber#describe

Defined in:
lib/puppet/pops/types/type_mismatch_describer.rb

#describe(expected, actual, path) ⇒ 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.



999
1000
1001
1002
1003
1004
1005
1006
1007
1008
# File 'lib/puppet/pops/types/type_mismatch_describer.rb', line 999

def describe(expected, actual, path)
  ures_finder = UnresolvedTypeFinder.new
  expected.accept(ures_finder, nil)
  unresolved = ures_finder.unresolved
  if unresolved
    [UnresolvedTypeReference.new(path, unresolved)]
  else
    internal_describe(expected.normalize, expected, actual, path)
  end
end