Home
last modified time | relevance | path

Searched refs:lineno (Results 1 – 25 of 229) sorted by relevance

12345678910

/external/opencv3/3rdparty/jinja2/
Dparser.py44 def fail(self, msg, lineno=None, exc=TemplateSyntaxError): argument
49 if lineno is None:
50 lineno = self.stream.current.lineno
51 raise exc(msg, lineno, self.name, self.filename)
53 def _fail_ut_eof(self, name, end_token_stack, lineno): argument
82 self.fail(' '.join(message), lineno)
84 def fail_unknown_tag(self, name, lineno=None): argument
89 return self._fail_ut_eof(name, self._end_token_stack, lineno)
91 def fail_eof(self, end_tokens=None, lineno=None): argument
96 return self._fail_ut_eof(None, stack, lineno)
[all …]
Dext.py107 def attr(self, name, lineno=None): argument
115 return nodes.ExtensionAttribute(self.identifier, name, lineno=lineno)
118 dyn_kwargs=None, lineno=None): argument
126 return nodes.Call(self.attr(name, lineno=lineno), args, kwargs,
127 dyn_args, dyn_kwargs, lineno=lineno)
217 lineno = next(parser.stream).lineno
237 name.value, name.lineno,
279 name.value, name.lineno,
298 parser.fail('pluralize without variables', lineno)
303 node.set_lineno(lineno)
[all …]
Dlexer.py221 def __call__(self, lineno, filename): argument
222 raise self.error_class(self.message, lineno, filename)
228 lineno, type, value = (property(itemgetter(x)) for x in range(3)) variable in Token
230 def __new__(cls, lineno, type, value): argument
231 return tuple.__new__(cls, (lineno, intern(str(type)), value))
262 self.lineno,
356 self.current = Token(self.current.lineno, TOKEN_EOF, '')
369 self.current.lineno,
373 self.current.lineno,
552 for lineno, token, value in stream:
[all …]
Dexceptions.py84 def __init__(self, message, lineno, name=None, filename=None): argument
86 self.lineno = lineno
101 location = 'line %d' % self.lineno
110 line = self.source.splitlines()[self.lineno - 1]
/external/llvm/test/DebugInfo/
Ddebugmacinfo.test11 TEST_MACINFO: DW_MACINFO_define - lineno: 0 macro: M3 Value3
12 TEST_MACINFO: DW_MACINFO_start_file - lineno: 0 filenum: 1
13 TEST_MACINFO: DW_MACINFO_start_file - lineno: 0 filenum: 2
14 TEST_MACINFO: DW_MACINFO_define - lineno: 1 macro: M4 Value4
16 TEST_MACINFO: DW_MACINFO_define - lineno: 1 macro: M1 Value1
17 TEST_MACINFO: DW_MACINFO_start_file - lineno: 2 filenum: 3
18 TEST_MACINFO: DW_MACINFO_undef - lineno: 4 macro: M1
19 TEST_MACINFO: DW_MACINFO_define - lineno: 5 macro: M1 NewValue1
21 TEST_MACINFO: DW_MACINFO_define - lineno: 3 macro: M2(x,y) ((x)+(y)* Value2)
/external/libpng/scripts/
Ddfn.awk75 lineno=FNR
76 if (lineno == "") lineno=NR
79 print "line", lineno ": processing failed:"
119 print "line", lineno, ": internal error:", orig
136 print "line", lineno ": unbalanced @\" ... \"@ pair"
160 print "line", lineno ": unterminated PNG_DFN string"
/external/selinux/libsemanage/src/
Dparse_utils.c30 tmp_info->lineno = 0; in parse_init()
88 int lineno = info->lineno; in parse_skip_space() local
105 lineno++; in parse_skip_space()
121 info->lineno = lineno; in parse_skip_space()
146 info->filename, info->lineno); in parse_assert_noeof()
161 info->filename, info->lineno, info->orig_line); in parse_assert_space()
181 info->lineno, info->orig_line); in parse_assert_ch()
202 info->filename, info->lineno, info->orig_line); in parse_assert_str()
247 info->filename, info->lineno, info->orig_line); in parse_fetch_int()
255 info->lineno, info->orig_line); in parse_fetch_int()
[all …]
/external/skia/tools/
Dbuildbot_spec.py31 def lineno(): function
33 return inspect.getframeinfo(caller[0]).lineno
40 cov_start = lineno()+1 # We care about coverage starting just past this def.
166 cov_skip.extend([lineno(), lineno() + 1])
186 cov_skip.extend([lineno(), lineno() + 1])
206 cov_skip.extend([lineno(), lineno() + 1])
249 cov_skip.extend([lineno(), lineno() + 1])
314 cov_end = lineno() # Don't care about code coverage past here.
Dnanobench_flags.py23 def lineno(): function
25 return inspect.getframeinfo(caller[0]).lineno
28 cov_start = lineno()+1 # We care about coverage starting just past this def.
132 cov_end = lineno() # Don't care about code coverage past here.
/external/autotest/contrib/
Dcoverage.py128 lineno = node.lineno
131 if lineno and f:
132 lineno = min(lineno, f)
134 lineno = lineno or f
135 return lineno
139 lineno = node.lineno
141 lineno = max(lineno, self.getLastLine(n))
142 return lineno
155 l = node.lineno
177 def recordLine(self, lineno): argument
[all …]
/external/chromium-trace/catapult/third_party/coverage/coverage/
Dannotate.py77 for lineno, line in enumerate(source.splitlines(True), start=1):
78 while i < len(statements) and statements[i] < lineno:
80 while j < len(missing) and missing[j] < lineno:
82 if i < len(statements) and statements[i] == lineno:
83 covered = j >= len(missing) or missing[j] > lineno
96 elif lineno in excluded:
Dhtml.py203 for lineno, line in enumerate(fr.source_token_lines(), start=1):
208 if lineno in analysis.statements:
210 if lineno in analysis.excluded:
212 elif lineno in analysis.missing:
214 elif self.has_arcs and lineno in missing_branch_arcs:
218 for b in missing_branch_arcs[lineno]:
228 annotate_html = ",&nbsp;&nbsp; ".join(short_fmt % (lineno, d) for d in shorts)
231 annotate_title = "Line %d was executed, but never jumped to " % lineno
238 elif lineno in analysis.statements:
254 'number': lineno,
/external/chromium-trace/catapult/third_party/Paste/paste/debug/
Ddoctest_webapp.py307 def _parse_example(self, m, name, lineno): argument
336 self._check_prefix(source_lines[1:], ' '*indent, name, lineno)
338 self._check_prompt_blank(source_lines, indent, name, lineno)
339 self._check_prefix(source_lines[2:], ' '*indent + '.', name, lineno)
357 lineno + len(source_lines))
368 options = self._find_options(source, name, lineno)
388 charno, lineno = 0, 0
394 lineno += string.count('\n', charno, m.start())
397 self._parse_example(m, name, lineno)
403 lineno=lineno,
[all …]
/external/chromium-trace/catapult/third_party/Paste/paste/exceptions/
Dcollector.py263 lineno = tb.tb_lineno
278 data['lineno'] = lineno
467 lineno = None variable in ExceptionFrame
500 if not self.filename or not self.lineno:
503 for lineno in range(self.lineno-context, self.lineno+context+1):
504 lines.append(linecache.getline(self.filename, lineno))
/external/elfutils/src/
Daddr2line.c374 unsigned int lineno = 0; in print_dwarf_function() local
379 lineno = val; in print_dwarf_function()
404 if (lineno == 0) in print_dwarf_function()
409 comp_dir, comp_dir_sep, file, lineno); in print_dwarf_function()
412 comp_dir, comp_dir_sep, file, lineno, colno); in print_dwarf_function()
569 print_src (const char *src, int lineno, int linecol, Dwarf_Die *cu) in print_src() argument
586 comp_dir, comp_dir_sep, src, lineno, linecol); in print_src()
589 comp_dir, comp_dir_sep, src, lineno); in print_src()
696 int lineno, linecol; in handle_address() local
698 if (line != NULL && (src = dwfl_lineinfo (line, &addr, &lineno, &linecol, in handle_address()
[all …]
/external/opencv3/modules/python/src2/
Dhdr_parser.py51 print("Error: no arguments for the macro at %d" % (self.lineno,))
57 print("Error: no matching ')' in the macro call at %d" % (self.lineno,))
151 … print("Error at %d: argument contains ',' or '>' not within template arguments" % (self.lineno,))
157 … print("Error at %s:%d: template has no arguments" % (self.hname, self.lineno))
181 print("Error at %d: no closing ]" % (self.lineno,))
422 … print("Error at %d. no terminating ) in CVAPI() macro: %s" % (self.lineno, decl_str))
427 print("Error at %d: no args in '%s'" % (self.lineno, decl_str))
435 print("Error at %d: no args in '%s'" % (self.lineno, decl_str))
471 …"Error at %s:%d the function/method name is missing: '%s'" % (self.hname, self.lineno, decl_start))
502 print("Error: no closing ')' at %d" % (self.lineno,))
[all …]
/external/selinux/libselinux/src/
Dlabel_x.c36 unsigned lineno, struct selabel_handle *rec) in process_line() argument
53 lineno); in process_line()
80 path, lineno, type); in process_line()
106 unsigned int lineno, pass, maxnspec; in init() local
142 lineno = 0; in init()
146 if (process_line(path, line_buf, pass, ++lineno, rec)) in init()
149 lineno = 0; in init()
Dlabel_media.c34 unsigned lineno, struct selabel_handle *rec) in process_line() argument
51 lineno); in process_line()
79 unsigned int lineno, pass, maxnspec; in init() local
115 lineno = 0; in init()
119 if (process_line(path, line_buf, pass, ++lineno, rec)) in init()
122 lineno = 0; in init()
Dlabel_android_property.c85 int pass, unsigned lineno) in process_line() argument
99 lineno); in process_line()
117 path, lineno, spec_arr[nspec].lr.ctx_raw); in process_line()
135 unsigned int lineno, maxnspec, pass; in init() local
169 lineno = 0; in init()
173 if (process_line(rec, path, line_buf, pass, ++lineno) in init()
/external/libselinux/src/
Dlabel_android_property.c85 int pass, unsigned lineno) in process_line() argument
99 lineno, errbuf ?: strerror(errno)); in process_line()
110 lineno); in process_line()
128 path, lineno, spec_arr[nspec].lr.ctx_raw); in process_line()
146 unsigned int lineno, maxnspec, pass; in init() local
180 lineno = 0; in init()
184 if (process_line(rec, path, line_buf, pass, ++lineno) in init()
/external/elfutils/libdw/
Ddwarf_getsrc_file.c43 dwarf_getsrc_file (Dwarf *dbg, const char *fname, int lineno, int column, in dwarf_getsrc_file() argument
109 if (lineno != 0 in dwarf_getsrc_file()
110 && (lineno > line->line in dwarf_getsrc_file()
123 || match[inner]->line != lineno in dwarf_getsrc_file()
/external/selinux/libsepol/src/
Dgenusers.c31 buffer, path, lineno); \
41 unsigned lineno = 0, islist = 0, bit; local
62 lineno++;
167 q, path, lineno);
231 path, lineno);
277 path, lineno);
/external/doclava/src/com/google/doclava/
DDocFile.java81 int lineno = 1; in getPageMetadata() local
100 lineno++; in getPageMetadata()
103 System.err.println(docfile + ":" + lineno + ": error parsing docfile"); in getPageMetadata()
105 System.err.println(docfile + ":" + lineno + ":" + line); in getPageMetadata()
126 int lineno = 1; in writePage() local
145 lineno++; in writePage()
148 System.err.println(docfile + ":" + lineno + ": error parsing docfile"); in writePage()
150 System.err.println(docfile + ":" + lineno + ":" + line); in writePage()
165 Comment comment = new Comment(commentText, null, new SourcePositionInfo(docfile, lineno, 1)); in writePage()
/external/elfutils/tests/
Ddwfllines.c66 int lineno; in main() local
70 const char *src = dwfl_lineinfo (line, &addr, &lineno, &colno, in main()
92 assert (lineno == dw_lineno); in main()
148 i, addr, src, lineno, colno, mtime, length, in main()
/external/elfutils/libdwfl/
Ddwfl_module_getsrc_file.c53 const char *fname, int lineno, int column, in dwfl_module_getsrc_file() argument
108 if (lineno != 0 in dwfl_module_getsrc_file()
109 && (lineno > line->line in dwfl_module_getsrc_file()
122 || dwfl_line (match[inner])->line != lineno in dwfl_module_getsrc_file()

12345678910