Class: Steep::Diagnostic::Signature::Base
- Inherits:
-
Object
- Object
- Steep::Diagnostic::Signature::Base
show all
- Includes:
- Helper
- Defined in:
- lib/steep/diagnostic/signature.rb
Direct Known Subclasses
ClassVariableDuplicationError, CyclicClassAliasDefinitionError, DeprecatedTypeName, DuplicatedDeclaration, DuplicatedMethodDefinition, GenericParameterMismatch, InconsistentClassModuleAliasError, InheritModuleError, InlineDiagnostic, InstanceVariableTypeError, InvalidMethodOverload, InvalidTypeApplication, InvalidVarianceAnnotation, MixinClassError, ModuleSelfTypeError, NonregularTypeAlias, RecursiveAlias, RecursiveAncestor, RecursiveTypeAlias, SuperclassMismatch, SyntaxError, TypeParamDefaultReferenceError, UnexpectedError, UnknownMethodAlias, UnknownTypeName, UnsatisfiableGenericsDefaultType, UnsatisfiableTypeApplication, VariableDuplicationError
Instance Attribute Summary collapse
Instance Method Summary
collapse
Methods included from Helper
#error_name, #full_message
Constructor Details
#initialize(location:) ⇒ Base
Returns a new instance of Base.
9
10
11
|
# File 'lib/steep/diagnostic/signature.rb', line 9
def initialize(location:)
@location = location
end
|
Instance Attribute Details
Returns the value of attribute location.
7
8
9
|
# File 'lib/steep/diagnostic/signature.rb', line 7
def location
@location
end
|
Instance Method Details
#detail_lines ⇒ Object
17
18
19
|
# File 'lib/steep/diagnostic/signature.rb', line 17
def detail_lines
nil
end
|
#diagnostic_code ⇒ Object
21
22
23
|
# File 'lib/steep/diagnostic/signature.rb', line 21
def diagnostic_code
"RBS::#{error_name}"
end
|
13
14
15
|
# File 'lib/steep/diagnostic/signature.rb', line 13
def
raise
end
|
25
26
27
28
29
|
# File 'lib/steep/diagnostic/signature.rb', line 25
def path
if location
Pathname(location.buffer.name)
end
end
|