Skip to content

Commit

Permalink
Back to print debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
Vici37 committed Nov 24, 2024
1 parent ecb4c90 commit b1d68f3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/compiler/crystal/tools/typer.cr
Original file line number Diff line number Diff line change
Expand Up @@ -508,11 +508,17 @@ module Crystal
@line_locators << loc[0] unless loc["col_number"]?
@line_and_column_locators << loc[0] if loc["line_number"]? && loc["col_number"]?
end

pp! @dir_locators
pp! @file_locators
pp! @line_locators
pp! @line_and_column_locators
end

def visit(node : Crystal::Def)
return false unless loc = node.location
return false unless loc.filename && loc.line_number && loc.column_number
pp! loc
if node_in_def_locators(loc)
puts "Accepted"
all_defs << node
Expand Down

0 comments on commit b1d68f3

Please sign in to comment.