| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 """Process Chrome resources (HTML/CSS/JS) to handle <include> and <if> tags.""" | 5 """Process Chrome resources (HTML/CSS/JS) to handle <include> and <if> tags.""" |
| 6 | 6 |
| 7 from collections import defaultdict | 7 from collections import defaultdict |
| 8 import re | 8 import re |
| 9 import os | 9 import os |
| 10 | 10 |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 Args: | 110 Args: |
| 111 line_number: A processed file's line number. | 111 line_number: A processed file's line number. |
| 112 """ | 112 """ |
| 113 line_number = int(line_number) - 1 | 113 line_number = int(line_number) - 1 |
| 114 return LineNumber(self._lines[line_number][0], self._lines[line_number][1]) | 114 return LineNumber(self._lines[line_number][0], self._lines[line_number][1]) |
| 115 | 115 |
| 116 @property | 116 @property |
| 117 def included_files(self): | 117 def included_files(self): |
| 118 """A list of files that were inlined via <include>.""" | 118 """A list of files that were inlined via <include>.""" |
| 119 return self._included_files | 119 return self._included_files |
| 120 |
| OLD | NEW |