String SVGParsingError::format(const String& tagName, const QualifiedName& name, const AtomicString& value) const { StringBuilder builder; appendErrorContextInfo(builder, tagName, name); builder.append(": "); if (hasLocus() && locus() == value.length()) builder.append("Unexpected end of attribute. "); auto message = messageForStatus(status()); builder.append(message.first); appendValue(builder, *this, value); builder.append(message.second); return builder.toString(); }
void definept(Coordinate *p) { Code cp = code(Defpoint); cp->u.point.src = p ? *p : src; cp->u.point.point = npoints; if (ncalled > 0) { int n = findcount(cp->u.point.src.file, cp->u.point.src.x, cp->u.point.src.y); if (n > 0) refinc = (float)n/ncalled; } if (glevel > 2) locus(identifiers, &cp->u.point.src); if (events.points && reachable(Gen)) { Tree e = NULL; apply(events.points, &cp->u.point.src, &e); if (e) listnodes(e, 0, 0); } }
// Returns the column number of the source code location. int Location::column_number() const { return locus().second; }
// Returns the line number of the source code location. int Location::line_number() const { return locus().first; }