Lines Matching refs:conditional
49 # Standard conditionals, add the conditional to a stack to be unwound as endifs are found
55 # Try to match each endif to a previously defined conditional, logging errors as it goes
59 @found_conditionals.reverse_each do |conditional|
62 if conditional.attributes == conditional_attributes(line)
73 logger.warn "Preprocessor conditional mismatch detected - these should be addressed before attempting to fix any other errors."
78 conditional = @found_conditionals.pop
79 logger.error message_with_context %(unmatched conditional "#{conditional.line}" with no endif), source_location: conditional.cursor
95 extra_line = %(endif::#{conditional.attributes}[])
100 # Pop the matching conditional
105 logger.warn "Preprocessor conditional mismatch detected - these should be addressed before attempting to fix any other errors."
110 logger.error message_with_context %(unmatched endif - found "#{line}" with no matching conditional begin), source_location: cursor