Class: Puppet::Pops::Types::TypeMismatchDescriber::UnresolvedTypeFinder Private

Inherits:
Object
  • Object
show all
Includes:
Puppet::Pops::Types::TypeAcceptor
Defined in:
lib/puppet/pops/types/type_mismatch_describer.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

API:

  • private

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeUnresolvedTypeFinder

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.

Returns a new instance of UnresolvedTypeFinder.

API:

  • private



980
981
982
# File 'lib/puppet/pops/types/type_mismatch_describer.rb', line 980

def initialize
  @unresolved = nil
end

Instance Attribute Details

#unresolvedObject (readonly)

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.

API:

  • private



978
979
980
# File 'lib/puppet/pops/types/type_mismatch_describer.rb', line 978

def unresolved
  @unresolved
end

Instance Method Details

#visit(type, guard) ⇒ 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.

API:

  • private



984
985
986
987
988
# File 'lib/puppet/pops/types/type_mismatch_describer.rb', line 984

def visit(type, guard)
  if @unresolved.nil? && type.is_a?(PTypeReferenceType)
    @unresolved = type.type_string
  end
end