Class: Steep::Services::SignatureService::SyntaxErrorStatus

Inherits:
Object
  • Object
show all
Defined in:
lib/steep/services/signature_service.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(files:, changed_paths:, diagnostics:, last_builder:) ⇒ SyntaxErrorStatus

Returns a new instance of SyntaxErrorStatus.



9
10
11
12
13
14
# File 'lib/steep/services/signature_service.rb', line 9

def initialize(files:, changed_paths:, diagnostics:, last_builder:)
  @files = files
  @changed_paths = changed_paths
  @diagnostics = diagnostics
  @last_builder = last_builder
end

Instance Attribute Details

#changed_pathsObject (readonly)

Returns the value of attribute changed_paths.



7
8
9
# File 'lib/steep/services/signature_service.rb', line 7

def changed_paths
  @changed_paths
end

#diagnosticsObject (readonly)

Returns the value of attribute diagnostics.



7
8
9
# File 'lib/steep/services/signature_service.rb', line 7

def diagnostics
  @diagnostics
end

#filesObject (readonly)

Returns the value of attribute files.



7
8
9
# File 'lib/steep/services/signature_service.rb', line 7

def files
  @files
end

#last_builderObject (readonly)

Returns the value of attribute last_builder.



7
8
9
# File 'lib/steep/services/signature_service.rb', line 7

def last_builder
  @last_builder
end

Instance Method Details

#constant_resolverObject



23
24
25
# File 'lib/steep/services/signature_service.rb', line 23

def constant_resolver
  @constant_resolver ||= RBS::Resolver::ConstantResolver.new(builder: last_builder)
end

#rbs_indexObject



16
17
18
19
20
21
# File 'lib/steep/services/signature_service.rb', line 16

def rbs_index
  @rbs_index ||= Index::RBSIndex.new().tap do |index|
    builder = Index::RBSIndex::Builder.new(index: index)
    builder.env(last_builder.env)
  end
end