Class: Parser::Diagnostic
Overview
source://parser//lib/parser/diagnostic.rb#31
Defined Under Namespace
Classes: Engine
Constant Summary collapse
- LEVELS =
Collection of the available diagnostic levels.
source://parser//lib/parser/diagnostic.rb#37
T.let(T.unsafe(nil), Array)
Instance Method Summary collapse
-
#arguments ⇒ Symbol
source://parser//lib/parser/diagnostic.rb#39.
-
#highlights ⇒ Array<Parser::Source::Range>
Supplementary error-related source ranges.
-
#initialize(level, reason, arguments, location, highlights = T.unsafe(nil)) ⇒ Diagnostic
constructor
source://parser//lib/parser/diagnostic.rb#49.
-
#level ⇒ Symbol
source://parser//lib/parser/diagnostic.rb#39.
-
#location ⇒ Parser::Source::Range
Main error-related source range.
-
#message ⇒ String
source://parser//lib/parser/diagnostic.rb#69.
-
#reason ⇒ Symbol
source://parser//lib/parser/diagnostic.rb#39.
-
#render ⇒ Array<String>
Renders the diagnostic message as a clang-like diagnostic.
Constructor Details
#initialize(level, reason, arguments, location, highlights = T.unsafe(nil)) ⇒ Diagnostic
source://parser//lib/parser/diagnostic.rb#49
1714 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 1714 def initialize(level, reason, arguments, location, highlights = T.unsafe(nil)); end |
Instance Method Details
#arguments ⇒ Symbol
source://parser//lib/parser/diagnostic.rb#39
1721 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 1721 def arguments; end |
#highlights ⇒ Array<Parser::Source::Range>
Supplementary error-related source ranges.
source://parser//lib/parser/diagnostic.rb#40
1729 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 1729 def highlights; end |
#level ⇒ Symbol
source://parser//lib/parser/diagnostic.rb#39
1736 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 1736 def level; end |
#location ⇒ Parser::Source::Range
Main error-related source range.
source://parser//lib/parser/diagnostic.rb#40
1744 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 1744 def location; end |
#message ⇒ String
source://parser//lib/parser/diagnostic.rb#69
1750 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 1750 def ; end |
#reason ⇒ Symbol
source://parser//lib/parser/diagnostic.rb#39
1757 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 1757 def reason; end |
#render ⇒ Array<String>
Renders the diagnostic message as a clang-like diagnostic.
source://parser//lib/parser/diagnostic.rb#86
1772 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 1772 def render; end |