forked from mirrors/probot
Skip using asty for now
I experimented with adding this, but do not really see the value right now.
This commit is contained in:
parent
458a994f21
commit
8e83b10bc6
|
@ -1,6 +1,5 @@
|
|||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
const ASTY = require('asty');
|
||||
const PEG = require('pegjs');
|
||||
const PEGUtil = require('pegjs-util');
|
||||
|
||||
|
@ -11,14 +10,6 @@ const parser = PEG.generate(fs.readFileSync(path.join(__dirname, 'parser.pegjs')
|
|||
|
||||
module.exports = {
|
||||
parse: (content, options) => {
|
||||
const asty = new ASTY();
|
||||
|
||||
options = Object.assign(options || {}, {
|
||||
makeAST: (line, column, offset, args) => {
|
||||
return asty.create.apply(asty, args).pos(line, column, offset);
|
||||
}
|
||||
});
|
||||
|
||||
const result = PEGUtil.parse(parser, content, options);
|
||||
|
||||
if (result.error) {
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
{
|
||||
var unroll = options.util.makeUnroll(location, options)
|
||||
var ast = options.util.makeAST (location, options)
|
||||
|
||||
// Helper Functions
|
||||
|
||||
|
|
|
@ -10,7 +10,6 @@
|
|||
"author": "Brandon Keepers",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"asty": "^1.4.7",
|
||||
"debug": "2.2.0",
|
||||
"expect": "^1.20.2",
|
||||
"github": "^5.2.0",
|
||||
|
|
Loading…
Reference in New Issue