aboutsummaryrefslogtreecommitdiffstats
path: root/lib/LXRng/Index/PgBatch.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/LXRng/Index/PgBatch.pm')
-rw-r--r--lib/LXRng/Index/PgBatch.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/LXRng/Index/PgBatch.pm b/lib/LXRng/Index/PgBatch.pm
index 19c9fa9..40654d2 100644
--- a/lib/LXRng/Index/PgBatch.pm
+++ b/lib/LXRng/Index/PgBatch.pm
@@ -146,9 +146,10 @@ sub _prime_symbol_cache {
}
sub _add_usage {
- my ($self, $file_id, $line, $symbol_id) = @_;
+ my ($self, $file_id, $symbol_id, $lines) = @_;
- push(@{$self->_cache('usage')}, "$file_id\t$symbol_id\t$line\n");
+ push(@{$self->_cache('usage')},
+ "$file_id\t$symbol_id\t\{".join(",", @$lines)."}\n");
return 1;
}