Class: RBS::InlineParser::Result
- Inherits:
-
Object
- Object
- RBS::InlineParser::Result
- Defined in:
- lib/rbs/inline_parser.rb
Instance Attribute Summary collapse
-
#buffer ⇒ Object
readonly
Returns the value of attribute buffer.
-
#declarations ⇒ Object
readonly
Returns the value of attribute declarations.
-
#diagnostics ⇒ Object
readonly
Returns the value of attribute diagnostics.
-
#prism_result ⇒ Object
readonly
Returns the value of attribute prism_result.
Instance Method Summary collapse
-
#initialize(buffer, prism) ⇒ Result
constructor
A new instance of Result.
- #type_fingerprint ⇒ Object
Constructor Details
#initialize(buffer, prism) ⇒ Result
Returns a new instance of Result.
8 9 10 11 12 13 |
# File 'lib/rbs/inline_parser.rb', line 8 def initialize(buffer, prism) @buffer = buffer @prism_result = prism @declarations = [] @diagnostics = [] end |
Instance Attribute Details
#buffer ⇒ Object (readonly)
Returns the value of attribute buffer.
6 7 8 |
# File 'lib/rbs/inline_parser.rb', line 6 def buffer @buffer end |
#declarations ⇒ Object (readonly)
Returns the value of attribute declarations.
6 7 8 |
# File 'lib/rbs/inline_parser.rb', line 6 def declarations @declarations end |
#diagnostics ⇒ Object (readonly)
Returns the value of attribute diagnostics.
6 7 8 |
# File 'lib/rbs/inline_parser.rb', line 6 def diagnostics @diagnostics end |
#prism_result ⇒ Object (readonly)
Returns the value of attribute prism_result.
6 7 8 |
# File 'lib/rbs/inline_parser.rb', line 6 def prism_result @prism_result end |
Instance Method Details
#type_fingerprint ⇒ Object
15 16 17 |
# File 'lib/rbs/inline_parser.rb', line 15 def type_fingerprint declarations.map(&:type_fingerprint) end |