Package com.google.gwt.dev.jjs

Examples of com.google.gwt.dev.jjs.JsSourceMap


      extractedRanges.add(typeOffsetNormalizedRange);
    }

    int typeBytes = typeEndPosition - typeStartPosition;
    int typeLines = typeEndLineNumber - typeStartLineNumber;
    return new JsSourceMap(extractedRanges, typeBytes, typeLines);
  }
View Full Code Here


    bytes += jsSourceMap.getBytes();
    lines += jsSourceMap.getLines();
  }

  public JsSourceMap build() {
    return new JsSourceMap(ranges, bytes, lines);
  }
View Full Code Here

        statement.replace(" />", "").replace("<", "").replace(">", "").replace("\n", "");

    statementRangesBuilder.addStartPosition(sb.length());
    List<Range> ranges = Lists.newArrayList(new Range(0, statement.length(), lines, 0, lines + 1,
        statement.length(), SourceOrigin.create(0, statement.length(), 0, typeName)));
    jsSourceMapBuilder.append(new JsSourceMap(ranges, statement.length(), 1));
    sb.append(statement);
    statementRangesBuilder.addEndPosition(sb.length());

    lines++;
  }
View Full Code Here

    }
  }

  @Override
  public JsSourceMap getSourceInfoMap() {
    return new JsSourceMap(ranges, out.getPosition(), out.getLine());
  }
View Full Code Here

      linkOne(superTypeName);
    }

    logger.log(TreeLogger.SPAM, "linking type " + typeName + " (" + typeJs.length() + " bytes)");
    StatementRanges typeStatementRanges = minimalRebuildCache.getStatementRanges(typeName);
    JsSourceMap typeSourceMap = minimalRebuildCache.getSourceMap(typeName);

    jsBuilder.append(typeJs);
    statementRangesBuilder.append(typeStatementRanges);
    jsSourceMapBuilder.append(typeSourceMap);
  }
View Full Code Here

            oldExpressionRange.getEnd() + shift, oldExpressionRange.getSourceInfo());
        updatedRanges.add(newExpressionRange);
      }

      sourceInfoMap =
          new JsSourceMap(updatedRanges, sourceInfoMap.getBytes(), sourceInfoMap.getLines());
    }
  }
View Full Code Here

        Range newExpressionRange = new Range(oldExpressionRange.getStart() + shift,
            oldExpressionRange.getEnd() + shift);
        updatedInfoMap.put(newExpressionRange, sourceInfoMap.get(oldExpressionRange));
      }

      sourceInfoMap = new JsSourceMap(updatedInfoMap);
    }
  }
View Full Code Here

    }
  }

  @Override
  public JsSourceMap getSourceInfoMap() {
    return new JsSourceMap(sourceInfoMap);
  }
View Full Code Here

TOP

Related Classes of com.google.gwt.dev.jjs.JsSourceMap

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.