struct

Krikri::VarSubstitutor::WhenOriginSite

Inherits Struct < Value < Object

Fiber-scoped stack of the when: clause this fiber is evaluating right now, pushed by TaskExecutor#evaluate_when around each clause's substitution and conditional evaluation and popped in an ensure. ansible-core 2.19 attributes a magic-variable read deprecation raised while evaluating a conditional to the when: clause's own source position (bloxberg.corosync_pacemaker's when: >- inventory_hostname == play_hosts[0] ... printed the warning with the Origin at tasks/auth/main.yml:7:9 - the import line's folded scalar token - issue #835), so the origin resolution needs the evaluating task's position even though the conditional is NOT a templated task param. exact_col is the when: VALUE token's own 1-based column when the parser recorded one (import-merged clauses: imported_when_origins / inherited_when_origin); 0 falls back to scanning the task's own file for the "when:" key, the same locate param_value_origin performs.

Constructors

new(source_file : String | Nil, source_line : Int32, exact_col : Int32, text : String | Nil = nil)
Source

Instance methods

clone
Source
copy_with(source_file _source_file = @source_file, source_line _source_line = @source_line, exact_col _exact_col = @exact_col, text _text = @text)
Source
exact_col
source_file
source_line
text