expressir 2.4.61-aarch64-linux → 2.4.62-aarch64-linux
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 +4 -4
- data/lib/expressir/3.2/expressir_core.so +0 -0
- data/lib/expressir/3.3/expressir_core.so +0 -0
- data/lib/expressir/3.4/expressir_core.so +0 -0
- data/lib/expressir/4.0/expressir_core.so +0 -0
- data/lib/expressir/express/node_position_index.rb +13 -7
- data/lib/expressir/express/remark_attacher.rb +7 -1
- data/lib/expressir/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 324e4deb12881b3d886c9d9ca434195fb2528da4cfe3b8f9d3f1026fbb655dc1
|
|
4
|
+
data.tar.gz: 12c72a4b83092d211a6c3b801e6cf6c7d060f5d372d97de1796b38de0bf231ff
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: efdaa3dd0530e121d4eef30e643db63de5a5450e22e84ab8eff2a1c4237c41fdf89844248fc8351e4d7e71b540ee904f002d696b0c00b299d159171f275fb340
|
|
7
|
+
data.tar.gz: bd907900898f2e9ed50c128e3c4eb6478d29cf810cba30d75242fd3724d2032c3a666dfd576c607ee49406403f8685fb697c5ab32a5c9fd466323e17ba3c64da
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -69,12 +69,6 @@ module Expressir
|
|
|
69
69
|
entries.sort_by { |n| node_order(n) }
|
|
70
70
|
end
|
|
71
71
|
|
|
72
|
-
# First node (in node order) that is_a?(type), memoized per type.
|
|
73
|
-
def first_node_of_type(type)
|
|
74
|
-
@first_of_type ||= {}
|
|
75
|
-
@first_of_type[type] ||= @nodes.find { |n| n[:node].is_a?(type) }&.dig(:node)
|
|
76
|
-
end
|
|
77
|
-
|
|
78
72
|
def semantic_entries
|
|
79
73
|
@semantic_entries ||=
|
|
80
74
|
@nodes.select { |n| n[:line] && semantic?(n[:node]) }
|
|
@@ -200,7 +194,19 @@ module Expressir
|
|
|
200
194
|
end
|
|
201
195
|
|
|
202
196
|
candidates.min_by { |n| node_order(n) }&.dig(:node) ||
|
|
203
|
-
|
|
197
|
+
containing_node_of_type(node_type, remark_line)
|
|
198
|
+
end
|
|
199
|
+
|
|
200
|
+
# A comment on an END_XXX line whose scope's recorded end sits past
|
|
201
|
+
# the line — remark items live between declarations, and their spans
|
|
202
|
+
# push the owner's end_line beyond END_XXX — resolves by span
|
|
203
|
+
# containment. Falls back to nil, not the first node of the type:
|
|
204
|
+
# handing an unresolvable END_FUNCTION comment to the first function
|
|
205
|
+
# piled every stray tail onto one owner (#609).
|
|
206
|
+
def containing_node_of_type(type, line)
|
|
207
|
+
semantic_entries
|
|
208
|
+
.select { |n| n[:node].is_a?(type) && n[:end_line] && line.between?(n[:line], n[:end_line]) }
|
|
209
|
+
.min_by { |n| node_order(n) }&.dig(:node)
|
|
204
210
|
end
|
|
205
211
|
|
|
206
212
|
private
|
|
@@ -163,7 +163,13 @@ module Expressir
|
|
|
163
163
|
|
|
164
164
|
# Strategy 3: Create implicit item for qualified paths only
|
|
165
165
|
if target.nil? && tag.include?(".")
|
|
166
|
-
|
|
166
|
+
# A tag whose first segment is a schema id is already
|
|
167
|
+
# absolute: prepending the containing scope's path would
|
|
168
|
+
# double-count it, and the implicit walk would then name
|
|
169
|
+
# the item after the schema (#609 — `(*"s.f.lv"` inside f
|
|
170
|
+
# must create `lv`, not `s`).
|
|
171
|
+
absolute_tag = get_schema_ids(@model).include?(tag.split(".").first)
|
|
172
|
+
if containing_scope && function_rule_procedure?(containing_scope) && !absolute_tag
|
|
167
173
|
scope_path = build_scope_path(containing_scope)
|
|
168
174
|
if scope_path
|
|
169
175
|
target = create_implicit_remark_item(@model, "#{scope_path}.#{tag}",
|
data/lib/expressir/version.rb
CHANGED