class SheepAst::ConditionMatch
TBD
Attributes
sem[RW]
start_info[RW]
Public Instance Methods
end_condition(data)
click to toggle source
# File lib/sheep_ast/match/condition_match.rb, line 38 def end_condition(data) ldebug? and ldebug "ConditionMatch ended by key:#{data.expr.inspect}."\ "End at #{T.must(data.file_info).file}:#{T.must(data.file_info).line}."\ "It was start from #{@start_info}." @start_info = nil @sem = 0 options_ = T.cast(@options, T::Hash[Symbol, T::Boolean]) data.request_next_data = RequestNextData::Again if T.must(options_)[:end_reinput] @end_line = data.file_info&.line @end_index = data.file_info&.index end
end_info_set(line, index)
click to toggle source
# File lib/sheep_ast/match/condition_match.rb, line 52 def end_info_set(line, index); end
init()
click to toggle source
# File lib/sheep_ast/match/condition_match.rb, line 55 def init @matched_expr = [] end
start_condition(data)
click to toggle source
# File lib/sheep_ast/match/condition_match.rb, line 24 def start_condition(data) ldebug? and ldebug "start condition with expr #{data.expr.inspect}" @sem = 1 @start_info = "#{data.nil?}:#{data.to_enum}: start key:#{data.expr.inspect}" @start_line = data.file_info&.line @start_index = data.file_info&.index @start_line = data.file_info&.line @start_index = data.file_info&.index end
start_info_set(line, index)
click to toggle source
# File lib/sheep_ast/match/condition_match.rb, line 50 def start_info_set(line, index); end
test_finish?(data)
click to toggle source
# File lib/sheep_ast/match/condition_match.rb, line 35 def test_finish?(data); end