Class: Steep::Services::SignatureService::AncestorErrorStatus

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:) ⇒ AncestorErrorStatus

Returns a new instance of AncestorErrorStatus.



31
32
33
34
35
36
# File 'lib/steep/services/signature_service.rb', line 31

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.



29
30
31
# File 'lib/steep/services/signature_service.rb', line 29

def changed_paths
  @changed_paths
end

#diagnosticsObject (readonly)

Returns the value of attribute diagnostics.



29
30
31
# File 'lib/steep/services/signature_service.rb', line 29

def diagnostics
  @diagnostics
end

#filesObject (readonly)

Returns the value of attribute files.



29
30
31
# File 'lib/steep/services/signature_service.rb', line 29

def files
  @files
end

#last_builderObject (readonly)

Returns the value of attribute last_builder.



29
30
31
# File 'lib/steep/services/signature_service.rb', line 29

def last_builder
  @last_builder
end

Instance Method Details

#constant_resolverObject



45
46
47
# File 'lib/steep/services/signature_service.rb', line 45

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

#rbs_indexObject



38
39
40
41
42
43
# File 'lib/steep/services/signature_service.rb', line 38

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