mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Pass along end line
This commit is contained in:
parent
67b4c0589b
commit
65799fdd3b
2 changed files with 3 additions and 3 deletions
|
@ -41,7 +41,7 @@ module Spectator::DSL
|
|||
|
||||
::Spectator::DSL::Builder.start_group(
|
||||
_spectator_group_name(\{{what}}),
|
||||
::Spectator::Location.new(\{{block.filename}}, \{{block.line_number}}),
|
||||
::Spectator::Location.new(\{{block.filename}}, \{{block.line_number}}, \{{block.end_line_number}}),
|
||||
metadata
|
||||
)
|
||||
|
||||
|
@ -96,7 +96,7 @@ module Spectator::DSL
|
|||
\%collection,
|
||||
\{{collection.stringify}},
|
||||
\{{block.args.empty? ? :nil.id : block.args.first.stringify}},
|
||||
::Spectator::Location.new(\{{block.filename}}, \{{block.line_number}}),
|
||||
::Spectator::Location.new(\{{block.filename}}, \{{block.line_number}}, \{{block.end_line_number}}),
|
||||
metadata
|
||||
)
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@ module Spectator::DSL
|
|||
{% end %}
|
||||
|
||||
::Spectator::DSL::Builder.{{type.id}}(
|
||||
::Spectator::Location.new(\{{block.filename}}, \{{block.line_number}})
|
||||
::Spectator::Location.new(\{{block.filename}}, \{{block.line_number}}, \{{block.end_line_number}})
|
||||
) do
|
||||
{% if block %}
|
||||
%wrapper do |*args|
|
||||
|
|
Loading…
Reference in a new issue