private static void appendFieldStart(Appendable out, String name) throws IOException { appendField(out, name, ""); }
appendField(out, "file", escapeString(name)); appendField(out, "lineCount", String.valueOf(maxLine)); appendField(out, "sourceRoot", escapeString(this.sourceRootPath)); value = new Gson().toJson(value); appendField(out, key, value);
appendField(out, "file", escapeString(name)); appendField(out, "lineCount", String.valueOf(maxLine)); appendField(out, "sourceRoot", escapeString(this.sourceRootPath)); value = objValue.toString(); appendField(out, key, value);
private static void appendOffsetValue(Appendable out, int line, int column) throws IOException { out.append("{\n"); appendFirstField(out, "line", String.valueOf(line)); appendField(out, "column", String.valueOf(column)); out.append("\n}"); }
appendField(out, "file", escapeString(name)); appendOffsetValue(out, section.getLine(), section.getColumn()); if (section.getSectionType() == SourceMapSection.SectionType.URL) { appendField(out, "url", escapeString(section.getSectionValue())); } else if (section.getSectionType() == SourceMapSection.SectionType.MAP) { appendField(out, "map", section.getSectionValue()); } else { throw new IOException("Unexpected section type");
private static CharSequence offsetValue(int line, int column) throws IOException { StringBuilder out = new StringBuilder(); out.append("{\n"); appendFirstField(out, "line", String.valueOf(line)); appendField(out, "column", String.valueOf(column)); out.append("\n}"); return out; }
appendField(out, "file", escapeString(name)); offsetValue(section.getLine(), section.getColumn())); if (section.getSectionType() == SourceMapSection.SectionType.URL) { appendField(out, "url", escapeString(section.getSectionValue())); } else if (section.getSectionType() == SourceMapSection.SectionType.MAP) { appendField(out, "map", section.getSectionValue()); } else { throw new IOException("Unexpected section type");