Home
last modified time | relevance | path

Searched refs:line_number (Results 1 – 25 of 457) sorted by relevance

12345678910>>...19

/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/style/checkers/
Dcpp.py584 def count(self, line_number): argument
586 if self.in_a_function and line_number >= self.body_start_position.row:
589 def check(self, error, line_number): argument
607 error(line_number, 'readability/fn_size', error_level,
822 for line_number in range(len(lines)):
823 self.lines.append(cleanse_comments(lines[line_number]))
824 elided = self.collapse_strings(lines[line_number])
879 line_number = position.row
897 return Position(line_number, current_column)
900 line_number += 1
[all …]
Dcommon.py45 for line_number in range(len(lines)):
46 if not lines[line_number].endswith("\r"):
49 self._handle_style_error(line_number + 1, # Correct for offset.
55 lines[line_number] = lines[line_number].rstrip("\r")
70 for line_number, line in enumerate(lines):
72 self.handle_style_error(line_number + 1,
/external/lldb/test/lang/objc/objc-stepping/
DTestObjCStepping.py37 …self.source_randomMethod_line = line_number (self.main_source, '// Source randomMethod start line.…
38 …self.sourceBase_randomMethod_line = line_number (self.main_source, '// SourceBase randomMethod sta…
39 …self.source_returnsStruct_start_line = line_number (self.main_source, '// Source returnsStruct sta…
40 …self.sourceBase_returnsStruct_start_line = line_number (self.main_source, '// SourceBase returnsSt…
41 … self.stepped_past_nil_line = line_number (self.main_source, '// Step over nil should stop here.')
108 line_number = thread.GetFrameAtIndex(0).GetLineEntry().GetLine()
109 …self.assertTrue (line_number == self.source_randomMethod_line, "Stepped into Source randomMethod.")
113 line_number = thread.GetFrameAtIndex(0).GetLineEntry().GetLine()
114 …self.assertTrue (line_number == self.sourceBase_randomMethod_line, "Stepped through super into Sou…
122 line_number = thread.GetFrameAtIndex(0).GetLineEntry().GetLine()
[all …]
/external/chromium_org/tools/memory_inspector/memory_inspector/core/
Dsymbol.py37 def __init__(self, name, source_file_path=None, line_number=None): argument
41 self.AddSourceLineInfo(source_file_path, line_number or 0)
43 def AddSourceLineInfo(self, source_file_path, line_number): argument
44 self.source_info += [SourceInfo(source_file_path, line_number)]
55 def __init__(self, source_file_path, line_number): argument
56 assert(isinstance(line_number, int))
58 self.line_number = line_number
61 return '%s:%d' % (self.source_file_path, self.line_number)
/external/chromium_org/gpu/config/
Dgpu_test_expectations_parser.cc265 const std::string& line_data, size_t line_number) { in ParseLine() argument
270 entry.line_number = line_number; in ParseLine()
303 line_number); in ParseLine()
307 if (!UpdateTestConfig(&config, tokens[i], line_number)) in ParseLine()
310 if (!UpdateTestConfig(&config, token, line_number)) in ParseLine()
320 line_number); in ParseLine()
329 line_number); in ParseLine()
342 line_number); in ParseLine()
355 line_number); in ParseLine()
360 line_number); in ParseLine()
[all …]
/external/chromium_org/sync/api/
Dsync_error_unittest.cc31 EXPECT_EQ(location.line_number(), error.location().line_number()); in TEST_F()
46 EXPECT_EQ(location.line_number(), error.location().line_number()); in TEST_F()
55 EXPECT_EQ(location2.line_number(), error.location().line_number()); in TEST_F()
72 EXPECT_EQ(location.line_number(), error1.location().line_number()); in TEST_F()
78 EXPECT_EQ(error1.location().line_number(), error3.location().line_number()); in TEST_F()
101 EXPECT_EQ(location.line_number(), error1.location().line_number()); in TEST_F()
107 EXPECT_EQ(error1.location().line_number(), error2.location().line_number()); in TEST_F()
/external/chromium_org/third_party/closure_linter/closure_linter/common/
Dtokens.py50 def __init__(self, string, token_type, line, line_number, values=None): argument
66 self.line_number = line_number
87 return not self.previous or self.previous.line_number != self.line_number
95 return not self.next or self.next.line_number != self.line_number
124 self.values, self.line_number,
Dtokenizer.py78 def _CreateToken(self, string, token_type, line, line_number, values=None): argument
93 return tokens.Token(string, token_type, line, line_number, values)
102 line_number = self.__line_number
106 self.__AddToken(self._CreateToken('', Type.BLANK_LINE, line, line_number))
122 line_number))
127 line_number, match.groupdict()))
147 self.__CreateNormalToken(self.mode, normal_token, line, line_number))
149 def __CreateNormalToken(self, mode, string, line, line_number): argument
164 return self._CreateToken(string, type, line, line_number)
/external/chromium-trace/trace-viewer/third_party/closure_linter/closure_linter/common/
Dtokens.py50 def __init__(self, string, token_type, line, line_number, values=None): argument
66 self.line_number = line_number
87 return not self.previous or self.previous.line_number != self.line_number
95 return not self.next or self.next.line_number != self.line_number
124 self.values, self.line_number,
Dtokenizer.py78 def _CreateToken(self, string, token_type, line, line_number, values=None): argument
93 return tokens.Token(string, token_type, line, line_number, values)
102 line_number = self.__line_number
106 self.__AddToken(self._CreateToken('', Type.BLANK_LINE, line, line_number))
122 line_number))
127 line_number, match.groupdict()))
147 self.__CreateNormalToken(self.mode, normal_token, line, line_number))
149 def __CreateNormalToken(self, mode, string, line, line_number): argument
164 return self._CreateToken(string, type, line, line_number)
/external/chromium_org/extensions/common/
Dstack_frame.cc18 StackFrame::StackFrame() : line_number(1), column_number(1) { in StackFrame()
22 : line_number(frame.line_number), in StackFrame()
28 StackFrame::StackFrame(size_t line_number, in StackFrame() argument
32 : line_number(line_number), in StackFrame()
74 return line_number == rhs.line_number && in operator ==()
/external/chromium_org/third_party/skia/tools/
Dsanitize_source_files.py46 line_number = 0 # Keeps track of line numbers in the source file.
52 line_number += 1
55 line = modifier(line, full_item_path, line_number)
85 def TrailingWhitespaceRemover(line, file_path, line_number): argument
89 print 'Removing trailing whitespace in %s:%s' % (file_path, line_number)
93 def CrlfReplacer(line, file_path, line_number): argument
96 print 'Replacing CRLF with LF in %s:%s' % (file_path, line_number)
100 def TabReplacer(line, file_path, line_number): argument
103 print 'Replacing Tab with whitespace in %s:%s' % (file_path, line_number)
/external/skia/tools/
Dsanitize_source_files.py46 line_number = 0 # Keeps track of line numbers in the source file.
52 line_number += 1
55 line = modifier(line, full_item_path, line_number)
85 def TrailingWhitespaceRemover(line, file_path, line_number): argument
89 print 'Removing trailing whitespace in %s:%s' % (file_path, line_number)
93 def CrlfReplacer(line, file_path, line_number): argument
96 print 'Replacing CRLF with LF in %s:%s' % (file_path, line_number)
100 def TabReplacer(line, file_path, line_number): argument
103 print 'Replacing Tab with whitespace in %s:%s' % (file_path, line_number)
/external/chromium_org/media/
DPRESUBMIT.py49 for line_number, line in f.ChangedContents():
53 ' %s:%d\n %s' % (f.LocalPath(), line_number, line.strip()))
76 for line_number, line in f.ChangedContents():
78 problems.append('%s:%d' % (f.LocalPath(), line_number))
124 line_number = 1
132 line_number += contents.count('\n', 0, match.start())
140 if line_number <= num <= line_number + match.group().count('\n'):
141 problems.append('%s:%d' % (f, line_number))
147 line_number += match.group().count('\n')
/external/lldb/utils/vim-lldb/python-vim-lldb/
Dvim_signs.py21 def __init__(self, sign_text, buffer, line_number, highlight_colour=None): argument
31 self.show(name, buffer.number, line_number)
53 def show(self, name, buffer_number, line_number): argument
56 …vim.command("sign place %d name=%s line=%d buffer=%s" % (self.id, name, line_number, buffer_number…
64 def __init__(self, buffer, line_number, is_resolved): argument
66 super(BreakpointSign, self).__init__(txt, buffer, line_number)
69 def __init__(self, buffer, line_number, is_selected_thread): argument
72 line_number,
/external/chromium-trace/trace-viewer/third_party/closure_linter/closure_linter/
Derror_fixer.py88 self._file_changed_lines.add(tokens.line_number)
91 self._file_changed_lines.add(token.line_number)
137 token.line_number)
212 "'", Type.SINGLE_QUOTE_STRING_START, token.line, token.line_number)
215 token.line_number)
237 start_token.line_number)
265 last_type.line_number)
314 token.line, token.line_number)
330 while current_token and current_token.line_number == token.line_number:
343 token.line_number)
[all …]
Dtokenutil.py267 if new_token.line_number == token.line_number:
273 while iterator and iterator.line_number == new_token.line_number:
303 token.line_number)
317 token.line_number + 1)
336 next_token.line_number += 1
354 token.line_number)
371 if token2.line_number != token1.line_number:
372 return token1.line_number - token2.line_number
Dindentation.py94 self.line_number = token.line_number
177 (start_token.line_number)),
188 info.line_number = token.line_number - 1
200 print 'Line #%d: stack %r' % (token.line_number, stack)
229 self._start_index_offset[token.line_number] = expected[0] - actual
261 if (token.line_number == stack[-1].token.line_number):
371 if token.line_number in self._start_index_offset:
372 start_index += self._start_index_offset[token.line_number]
445 if not token or token.line_number != start_token.line_number:
488 if stack_info.line_number == token_info.line_number:
[all …]
/external/chromium_org/third_party/closure_linter/closure_linter/
Derror_fixer.py88 self._file_changed_lines.add(tokens.line_number)
91 self._file_changed_lines.add(token.line_number)
137 token.line_number)
212 "'", Type.SINGLE_QUOTE_STRING_START, token.line, token.line_number)
215 token.line_number)
237 start_token.line_number)
265 last_type.line_number)
314 token.line, token.line_number)
330 while current_token and current_token.line_number == token.line_number:
343 token.line_number)
[all …]
Dtokenutil.py267 if new_token.line_number == token.line_number:
273 while iterator and iterator.line_number == new_token.line_number:
303 token.line_number)
317 token.line_number + 1)
336 next_token.line_number += 1
354 token.line_number)
371 if token2.line_number != token1.line_number:
372 return token1.line_number - token2.line_number
Dindentation.py94 self.line_number = token.line_number
177 (start_token.line_number)),
188 info.line_number = token.line_number - 1
200 print 'Line #%d: stack %r' % (token.line_number, stack)
229 self._start_index_offset[token.line_number] = expected[0] - actual
261 if (token.line_number == stack[-1].token.line_number):
371 if token.line_number in self._start_index_offset:
372 start_index += self._start_index_offset[token.line_number]
445 if not token or token.line_number != start_token.line_number:
488 if stack_info.line_number == token_info.line_number:
[all …]
/external/chromium_org/tools/strict_enum_value_checker/
Dstrict_enum_value_checker.py106 def EmitWarning(self, message, line_number=None, line_text=None): argument
112 if line_number is not None and line_text is not None:
113 item = "%s(%d): %s" % (self.path, line_number, line_text)
114 elif line_number is not None:
115 item = "%s(%d)" % (self.path, line_number)
142 for line_number, line_text in affected_file.ChangedContents():
143 if first_line <= line_number and line_number <= last_line:
144 self.LogDebug("Line change at line number " + str(line_number) + ": " +
148 previous_range_start_line_number = line_number
151 elif line_number != previous_line_number + 1:
[all …]
/external/llvm/unittests/Support/
DLineIteratorTest.cpp30 EXPECT_EQ(1, I.line_number()); in TEST()
33 EXPECT_EQ(2, I.line_number()); in TEST()
36 EXPECT_EQ(3, I.line_number()); in TEST()
57 EXPECT_EQ(1, I.line_number()); in TEST()
60 EXPECT_EQ(2, I.line_number()); in TEST()
63 EXPECT_EQ(4, I.line_number()); in TEST()
83 EXPECT_EQ(4, I.line_number()); in TEST()
86 EXPECT_EQ(8, I.line_number()); in TEST()
/external/chromium_org/tools/gn/
Derr.cc26 void FillRangeOnLine(const LocationRange& range, int line_number, in FillRangeOnLine() argument
30 if (range.begin().line_number() != line_number && in FillRangeOnLine()
31 range.end().line_number() != line_number) in FillRangeOnLine()
37 if (range.begin().line_number() < line_number) in FillRangeOnLine()
43 if (range.end().line_number() > line_number) in FillRangeOnLine()
68 FillRangeOnLine(ranges[i], location.line_number(), &highlight); in OutputHighlighedPosition()
177 location_.line_number()); in InternalPrintToStdout()
/external/chromium_org/content/browser/service_worker/
Dservice_worker_context_observer.h21 line_number(line), in ErrorInfo()
25 const int line_number; member
33 int line_number, in ConsoleMessage()
38 line_number(line_number), in ConsoleMessage()
43 const int line_number; member

12345678910>>...19