Class: JsxRosetta::Backend::ViewComponent::ExpressionTranslator::Result

Inherits:
Data
  • Object
show all
Defined in:
lib/jsx_rosetta/backend/view_component/expression_translator.rb

Overview

‘promoted_locals` lists names that the condition-mode translator rendered as `@ivar` despite being known-but-unresolvable locals or imports (bucket 4 in the resolution rules). The caller is expected to surface this list in a TODO so a reviewer knows which bindings need to become controller-passed props.

Instance Attribute Summary collapse

Instance Attribute Details

Returns the value of attribute promoted_locals

Returns:

  • (Object)

    the current value of promoted_locals



84
85
86
# File 'lib/jsx_rosetta/backend/view_component/expression_translator.rb', line 84

def promoted_locals
  @promoted_locals
end

#rubyObject (readonly)

Returns the value of attribute ruby

Returns:

  • (Object)

    the current value of ruby



84
85
86
# File 'lib/jsx_rosetta/backend/view_component/expression_translator.rb', line 84

def ruby
  @ruby
end

#unresolved_identifiersObject (readonly)

Returns the value of attribute unresolved_identifiers

Returns:

  • (Object)

    the current value of unresolved_identifiers



84
85
86
# File 'lib/jsx_rosetta/backend/view_component/expression_translator.rb', line 84

def unresolved_identifiers
  @unresolved_identifiers
end