class Gherkin::Query
def update_scenario(feature, rule, scenario)
def update_scenario(feature, rule, scenario) store_node_location(scenario) store_nodes_location(scenario.tags) update_steps(scenario.steps) scenario.examples.each do |examples| store_nodes_location(examples.tags || []) store_nodes_location(examples.table_body || []) end @scenario_parent_locations[scenario.id] = [ feature.location, @background_locations[feature], rule&.location, @background_locations[rule], ].compact end