/external/chromium_org/third_party/jinja2/ |
D | parser.py | 44 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 …]
|
D | ext.py | 107 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 …]
|
D | lexer.py | 221 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 …]
|
D | exceptions.py | 84 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/chromium_org/mojo/public/tools/bindings/pylib/mojom/parse/ |
D | parser.py | 40 def __init__(self, filename, message, lineno=None, snippet=None): argument 41 Error.__init__(self, filename, message, lineno=lineno, 98 p[0] = ast.Module(p[3], p[1], filename=self.filename, lineno=p.lineno(2)) 144 p[0] = ast.Attribute(p[1], p[3], filename=self.filename, lineno=p.lineno(1)) 226 filename=self.filename, lineno=p.lineno(2)) 261 lineno=p.lineno(1), 262 snippet=self._GetSnippet(p.lineno(1))) 274 lineno=p.lineno(3), 275 snippet=self._GetSnippet(p.lineno(3))) 291 lineno=p.lineno(1), [all …]
|
D | lexer.py | 31 def __init__(self, filename, message, lineno): argument 32 Error.__init__(self, filename, message, lineno=lineno) 48 raise LexError(self.filename, msg, token.lineno) 165 t.lexer.lineno += len(t.value) 246 t.lexer.lineno += t.value.count("\n")
|
/external/chromium_org/third_party/cython/src/Cython/Runtime/ |
D | refnanny.pyx | 10 cdef log(level, action, obj, lineno): argument 12 reflog.append((lineno, action, id(obj))) 27 self.refs = {} # id -> (count, [lineno]) 30 cdef regref(self, obj, lineno, bint is_null): argument 31 log(LOG_ALL, u'regref', u"<NULL>" if is_null else obj, lineno) 33 self.errors.append(u"NULL argument on line %d" % lineno) 38 linenumbers.append(lineno) 40 cdef bint delref(self, obj, lineno, bint is_null) except -1: argument 42 log(LOG_ALL, u'delref', u"<NULL>" if is_null else obj, lineno) 44 self.errors.append(u"NULL argument on line %d" % lineno) [all …]
|
/external/chromium_org/mojo/public/tools/bindings/pylib/mojom_tests/parse/ |
D | ast_unittest.py | 50 node1 = ast.NodeBase(filename="hello.mojom", lineno=123) 62 self.assertEquals(node1.lineno, 123) 64 self.assertIsNone(node2.lineno) 75 node4 = _TestNode(123, filename="world.mojom", lineno=123) 81 node1 = _TestNode(1, filename="foo.mojom", lineno=1) 83 node1b = _TestNode(1, filename="foo.mojom", lineno=1) 84 node2 = _TestNode(2, filename="foo.mojom", lineno=2) 90 self.assertIsNone(nodelist1.lineno) 97 self.assertEquals(nodelist2.lineno, 1) 104 self.assertEquals(nodelist3.lineno, 2) [all …]
|
/external/libpng/scripts/ |
D | dfn.awk | 75 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/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/thirdparty/coverage/ |
D | annotate.py | 66 lineno = 0 74 lineno += 1 75 while i < len(statements) and statements[i] < lineno: 77 while j < len(missing) and missing[j] < lineno: 79 if i < len(statements) and statements[i] == lineno: 80 covered = j >= len(missing) or missing[j] > lineno 93 elif lineno in excluded:
|
D | html.py | 145 for lineno, line in enumerate(source_token_lines(source)): 146 lineno += 1 # 1-based line numbers. 151 if lineno in analysis.statements: 153 if lineno in analysis.excluded: 155 elif lineno in analysis.missing: 157 elif self.arcs and lineno in missing_branch_arcs: 161 for b in missing_branch_arcs[lineno]: 171 elif lineno in analysis.statements: 187 'number': lineno,
|
/external/chromium_org/mojo/public/tools/bindings/pylib/mojom/ |
D | error.py | 8 def __init__(self, filename, message, lineno=None, addenda=None, **kwargs): argument 16 self.lineno = lineno 20 if self.lineno: 21 s = "%s:%d: Error: %s" % (self.filename, self.lineno, self.message)
|
/external/chromium_org/third_party/sqlite/src/tool/ |
D | lemon.c | 1348 void ErrorMsg(const char *filename, int lineno, const char *format, ...){ in ErrorMsg() argument 1350 fprintf(stderr, "%s:%d: ", filename, lineno); in ErrorMsg() 2466 int lineno = 1; in preprocess_input() local 2469 if( z[i]=='\n' ) lineno++; in preprocess_input() 2496 start_lineno = lineno; in preprocess_input() 2519 int lineno; in Parse() local 2561 lineno = 1; in Parse() 2563 if( c=='\n' ) lineno++; /* Keep track of the line number */ in Parse() 2573 if( c=='\n' ) lineno++; in Parse() 2580 ps.tokenlineno = lineno; /* Linenumber on which token begins */ in Parse() [all …]
|
/external/chromium_org/third_party/WebKit/Source/wtf/ |
D | DynamicAnnotations.cpp | 38 volatile short lineno = (__LINE__ << 8) + __COUNTER__; \ 39 (void)lineno; 42 volatile short lineno = (__LINE__ << 8); \ 43 (void)lineno;
|
/external/chromium_org/third_party/cython/src/Cython/Tests/ |
D | TestStringIOTree.py | 60 for lineno in linenos: 61 self.write_line(lineno, tree=tree) 63 def write_line(self, lineno, tree=None): argument 66 tree.markers.append(lineno) 67 tree.write(linemap[lineno] + '\n')
|
/external/sepolicy/tools/ |
D | check_seapp.c | 105 int lineno; /** Line number rule was encounter on */ member 243 static int key_map_validate(key_map *m, int lineno) { in key_map_validate() argument 261 key, value, lineno, out_file_name); in key_map_validate() 270 value, lineno, out_file_name); in key_map_validate() 304 value, lineno, out_file_name); in key_map_validate() 315 lineno, out_file_name); in key_map_validate() 325 lineno, out_file_name); in key_map_validate() 497 name, rm->lineno); in rule_map_validate() 516 static rule_map *rule_map_new(kvp keys[], size_t num_of_keys, int lineno) { in rule_map_new() argument 529 new_map->lineno = lineno; in rule_map_new() [all …]
|
/external/doclava/src/com/google/doclava/ |
D | DocFile.java | 81 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/linux-tools-perf/perf-3.12.0/tools/perf/util/ |
D | dwarf-aux.c | 82 const char **fname, int *lineno) in cu_find_lineinfo() argument 89 addr == (unsigned long)laddr && dwarf_lineno(line, lineno) == 0) { in cu_find_lineinfo() 93 *lineno = 0; in cu_find_lineinfo() 96 return *lineno ?: -ENOENT; in cu_find_lineinfo() 585 int lineno; in __die_walk_funclines_cb() local 589 lineno = die_get_call_lineno(in_die); in __die_walk_funclines_cb() 590 if (fname && lineno > 0 && dwarf_entrypc(in_die, &addr) == 0) { in __die_walk_funclines_cb() 591 lw->retval = lw->callback(fname, lineno, addr, lw->data); in __die_walk_funclines_cb() 602 if (fname && dwarf_decl_line(in_die, &lineno) == 0) { in __die_walk_funclines_cb() 603 lw->retval = lw->callback(fname, lineno, addr, lw->data); in __die_walk_funclines_cb() [all …]
|
/external/chromium_org/third_party/cython/src/Cython/Debugger/ |
D | libcython.py | 157 def __init__(self, name, cname, qualified_name, type, lineno): argument 162 self.lineno = int(lineno) 171 lineno, argument 178 lineno) 233 filename = lineno = lexer = None 236 lineno = self.get_cython_lineno(frame) 247 lineno = pyframeobject.current_line_num() 255 lineno = 0 258 lineno = symbol_and_line_obj.line 262 return SourceFileDescriptor(filename, lexer), lineno [all …]
|
/external/qemu/distrib/libselinux/src/ |
D | label_file.c | 282 char *line_buf, int pass, unsigned lineno) in process_line() argument 304 lineno); in process_line() 326 path, lineno, regex); in process_line() 333 path, lineno, regex, in process_line() 346 path, lineno, type); in process_line() 374 path, lineno, type); in process_line() 385 path, lineno, spec_arr[nspec].lr.ctx_raw); in process_line() 410 unsigned int lineno, pass, i, j, maxnspec; in init() local 459 lineno = 0; in init() 465 pass, ++lineno) != 0) in init() [all …]
|
D | label_android_property.c | 85 int pass, unsigned lineno) in process_line() argument 107 lineno); in process_line() 117 path, lineno, prop); in process_line() 126 path, lineno, context); in process_line() 134 path, lineno, spec_arr[nspec].lr.ctx_raw); in process_line() 150 unsigned int lineno = 0, maxnspec, pass; in init() local 185 if (process_line(rec, path, line_buf, pass, ++lineno) != 0) { in init()
|
/external/qemu/android/utils/ |
D | assert.c | 18 long lineno; member 38 loc->lineno = fileLineno; in _android_assert_loc() 59 android_panic("ASSERTION FAILURE (%s:%d) in %s\n", loc->file, loc->lineno, loc->function); in android_assert_fail()
|
/external/libselinux/src/ |
D | label_android_property.c | 85 int pass, unsigned lineno) in process_line() argument 107 lineno); in process_line() 117 path, lineno, prop); in process_line() 126 path, lineno, context); in process_line() 134 path, lineno, spec_arr[nspec].lr.ctx_raw); in process_line() 150 unsigned int lineno = 0, maxnspec, pass; in init() local 185 if (process_line(rec, path, line_buf, pass, ++lineno) != 0) { in init()
|
/external/elfutils/0.153/src/ |
D | addr2line.c | 285 unsigned int lineno = 0; in print_dwarf_function() local 290 lineno = val; in print_dwarf_function() 315 if (lineno == 0) in print_dwarf_function() 320 comp_dir, comp_dir_sep, file, lineno); in print_dwarf_function() 323 comp_dir, comp_dir_sep, file, lineno, colno); in print_dwarf_function() 515 int lineno, linecol; in handle_address() local 516 if (line != NULL && (src = dwfl_lineinfo (line, &addr, &lineno, &linecol, in handle_address() 533 comp_dir, comp_dir_sep, src, lineno, linecol); in handle_address() 536 comp_dir, comp_dir_sep, src, lineno); in handle_address()
|
/external/srec/config/en.us/dictionary/ |
D | cmu2nuance.cpp | 46 for (int lineno = 1; NULL != fgets(line, sizeof(line), stdin); lineno++) in main() local 51 fprintf(stderr, "warning: ignoring line %d - %s", lineno, line); in main() 60 fprintf(stderr, "can't read name at line %d\n", lineno); in main() 177 fprintf(stderr, "can't pronounce line %d: %s", lineno, p); in main()
|