An open API service indexing awesome lists of open source software.

https://github.com/realyuniquename/sourcemap

Source maps support for Haxe
https://github.com/realyuniquename/sourcemap

map source sourcemap sourcemaps

Last synced: 8 months ago
JSON representation

Source maps support for Haxe

Awesome Lists containing this project

README

          

# Source maps

Cross platform source map parser for Haxe programming language.

## Usage

```haxe
import sourcemap.SourcePos;

class Main {

static public function main() {
var data = "Contents of some .js.map file";
var map = new SourceMap(data);

var pos : SourcePos = map.originalPositionFor(1, 3);
trace(pos);
/*
Outputs:
{
generatedLine:1,
generatedColumn:3,
originalColumn:10,
originalLine:3,
source:"/path/to/Test.hx",
name:"methodName"
}
*/

map.eachMapping(function (pos:SourcePos) {
trace(pos);
});
}
}
```