Skip to content

Commit

Permalink
Add SourceMapObjectParserJs.getLineCount implementation
Browse files Browse the repository at this point in the history
It was missing but used in the no JVM version when building source maps.
The implementation just returns the value of the lineCount property.

Fixes google#2826
Closes google#2829

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=187063993
  • Loading branch information
arichiardi authored and Tyler Breisacher committed Feb 27, 2018
1 parent 2d9e097 commit b21cf77
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import java.util.LinkedHashMap;
import java.util.Map;
import jsinterop.annotations.JsMethod;
import jsinterop.annotations.JsOverlay;
import jsinterop.annotations.JsPackage;
import jsinterop.annotations.JsType;

Expand Down Expand Up @@ -56,8 +57,11 @@ private static class JsonMap {
Section[] sections;
String[] sources;
String[] names;
@JsMethod
native Object getLineCount();

@JsOverlay
public final Object getLineCount() {
return this.lineCount;
}
}

@JsType(isNative = true, name = "Object", namespace = JsPackage.GLOBAL)
Expand Down

0 comments on commit b21cf77

Please sign in to comment.