hind 0.1.8 → 0.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: debf085e96a2d5683f8aac3870ab5c06ce0b28adc8dfa960227fb0a763defcee
4
- data.tar.gz: 475b21bdbc4502c445a24be086e131c511f53972f113e7dda6e2b52eb03b16b1
3
+ metadata.gz: 046343c3a41a8a05497b40d7bdcb9f6d2b36fb86552939100ddc11f0315ad7c2
4
+ data.tar.gz: c02124f19d952e174f6b4c37481c940f552c1a2847601ba58905526e12d78acc
5
5
  SHA512:
6
- metadata.gz: da48ed207a58c99a9a544c2f5f2d0b3c88aecd7fa36ef7fc348064f925033ae33b7702c04d1147970a583b27a2031c5de7ca89b4b9d0aefb731ae0b3ffa93ce7
7
- data.tar.gz: 88f86b97957a68ab50d153311d6d07a0ab0d99f39dfabe2409039ef86fc22af6f162419ddb926de58c938ebc9de165291c30e33556ac25db0d467ec1c450e610
6
+ metadata.gz: 26451ad30df53aa0ebcf4eb301dff7864473cef23b292165bc4c2d6e4eefad41a3a8d4bc8c00c628f29997e0d7e9301abbe5f72c5e4b240a193373d2b68c9d23
7
+ data.tar.gz: 7d4017a84074b81466a37141b8a8ed91b7f8bc11f3fd104b4637a73b6a47e4c69b87b1bac501196f73d7cb5180d3e315d81f88f72b135d2eb47dd33aceb1ce63
@@ -218,11 +218,11 @@ module Hind
218
218
 
219
219
  range_id = emit_vertex('range', {
220
220
  start: {
221
- line: start_location.start_line - 1,
221
+ line: start_location.start_line,
222
222
  character: start_location.start_column
223
223
  },
224
224
  end: {
225
- line: end_location.end_line - 1,
225
+ line: end_location.end_line,
226
226
  character: end_location.end_column
227
227
  }
228
228
  })
@@ -286,7 +286,7 @@ module Hind
286
286
  when :module
287
287
  "module #{declaration[:name]}"
288
288
  when :constant
289
- value_info = declaration[:node].value ? " = #{declaration[:node].value.inspect}" : ''
289
+ value_info = declaration[:node].value.content ? " = #{declaration[:node].value.content}" : ''
290
290
  "#{declaration[:name]}#{value_info}"
291
291
  else
292
292
  declaration[:name].to_s
@@ -1,4 +1,3 @@
1
- # lib/hind/lsif/global_state.rb
2
1
  # frozen_string_literal: true
3
2
 
4
3
  module Hind
@@ -1,4 +1,3 @@
1
- # lib/hind/lsif/visitors/declaration_visitor.rb
2
1
  # frozen_string_literal: true
3
2
 
4
3
  module Hind
data/lib/hind/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Hind
4
- VERSION = '0.1.8'
4
+ VERSION = '0.1.9'
5
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hind
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aboobacker MK
8
8
  bindir: exe
9
9
  cert_chain: []
10
- date: 2025-02-10 00:00:00.000000000 Z
10
+ date: 2025-02-15 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: prism