Lines Matching refs:path

51 def read(path):  argument
52 with open(path, errors="replace") as f:
153 def parse_tokens(path): argument
156 for line in read(path).splitlines():
249 self.toks = parse_tokens(os.path.join(main, "xmloff/source/core/xmltoken.cxx"))
262 rel = os.path.relpath(d, self.main).replace(os.sep, "/") + "/"
268 out.append(os.path.join(d, f))
272 def eligible(path): argument
273 base = os.path.basename(path)
276 def uri(self, key, path): argument
278 uri = self.ns_local.get(path, {}).get(key) or self.nskey_uri_global.get(key)
298 self.header_macros[os.path.basename(p)] = mc
332 def record(self, path, line, key, names, role, row): argument
333 uri = self.uri(key, path)
335 self.unres.append((path, line, "unmapped namespace key " + key, row))
337 mod = os.path.relpath(path, self.main).split(os.sep)[0]
342 e["ex"].append((os.path.relpath(path, self.main), line, role))
344 def scan_file(self, path): argument
345 text = self.texts[path]
351 macros.update(self.header_macros.get(os.path.basename(inc), {}))
353 self.cache[path] = (m, clean, text)
359 funcs = self.funcs[path] = func_defs(m)
379 module = os.path.relpath(path, self.main).split(os.sep)[0]
395 self.unres.append((path, line_of(i), "namespace not a literal key", row))
398 self.unres.append((path, line_of(i), "name not a literal token or string", row))
402 self.skipped.append((path, line_of(i), "not exported (flags)", row))
405 self.record(path, line_of(i), k, names, role, row)
418 … self.record(path, line_of(b0 + cm.start()), key, [cm.group(2)], "attribute", cm.group(0))
452 …self.skipped.append((path, line_of(mm.start()), "QName used as an attribute value", snip(mm.start(…
456 …self.skipped.append((path, line_of(mm.start()), "QName with literal local name (a value)", snip(mm…
474 … self.unres.append((path, line_of(mm.start()), "macro argument not a known key/token", row))
478 self.skipped.append((path, line_of(mm.start()), "not exported (flags)", row))
481 self.record(path, line_of(mm.start()), ns, names, role, row)
507 …self.skipped.append((path, line_of(mm.start()), "event-name translation (a value, not a name)", sn…
521 if os.path.relpath(p, self.main).split(os.sep)[0] != module:
532 def scan_wrapper_calls(self, path, discover): argument
534 m, clean, text = self.cache[path]
535 module = os.path.relpath(path, self.main).split(os.sep)[0]
567 inner = [f for f in self.funcs[path] if f[2] < mm.start() < f[3]]
578 … (len(fwd) == 1 and any(f[2] < mm.start() < f[3] and fwd[0][0] in f[1] for f in self.funcs[path])):
579 … self.unres.append((path, line_of(mm.start()), "wrapper %s() call not resolvable" % fname, row))
583 self.record(path, line_of(mm.start()), k, list(names), role, row)
615 with open(os.path.join(outdir, "emit.tsv"), "w") as f:
626 with open(os.path.join(outdir, name), "w") as f:
629 f.write("%s:%d\t%s\t%s\n" % (os.path.relpath(p, self.main), ln, why, row))