Method: Puppet::Pops::Types::TypeFormatter#string_PTypeAliasType

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

#string_PTypeAliasType(t) ⇒ 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.



537
538
539
540
541
542
543
544
545
# File 'lib/puppet/pops/types/type_formatter.rb', line 537

def string_PTypeAliasType(t)
  expand = @expanded
  if expand && t.self_recursion?
    @guard ||= RecursionGuard.new
    @guard.with_this(t) { |state| format_type_alias_type(t, (state & RecursionGuard::SELF_RECURSION_IN_THIS) == 0) }
  else
    format_type_alias_type(t, expand)
  end
end