Skip to content

Commit

Permalink
fix for #143
Browse files Browse the repository at this point in the history
  • Loading branch information
lukka committed Sep 10, 2024
1 parent a2e7c4d commit f441217
Show file tree
Hide file tree
Showing 7 changed files with 24,913 additions and 9,183 deletions.
4 changes: 4 additions & 0 deletions dist/action.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
if (!yy.ast) {
yy.ast = _ast;
_ast.initialize();
}
16 changes: 15 additions & 1 deletion dist/all.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
]
},
{
"owner": "msvc",
"owner": "msvc-line",
"pattern": [
{
"regexp": "^(.*)\\((\\d+)\\)\\s*:\\s*(?:fatal\\s*)?(error|warning)\\s+(?:.*)?([\\d]{4}):(\\s+.*)$",
Expand All @@ -53,6 +53,20 @@
"message": 5
}
]
},
{
"owner": "msvc-linecol",
"pattern": [
{
"regexp": "^(?:\\sWarning:\\s|\\sError:\\s)?(.*)\\((\\d+)(?:,(\\d+))?\\)\\s*:\\s*(?:fatal\\s*)?(error|warning)\\s+(?:.*)?([\\d]{4}):(\\s+.*)$",
"file": 1,
"line": 2,
"column": 3,
"code": 5,
"severity": 4,
"message": 6
}
]
}
]
}
3,756 changes: 3,756 additions & 0 deletions dist/esprima.js

Large diffs are not rendered by default.

30,071 changes: 20,933 additions & 9,138 deletions dist/index.js

Large diffs are not rendered by default.

34 changes: 34 additions & 0 deletions dist/module.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
var _ast = {

initialize: function() {
this._nodes = [];
this._node = {};
this._stash = [];
},

set: function(props) {
for (var k in props) this._node[k] = props[k];
return this._node;
},

node: function(obj) {
if (arguments.length) this._node = obj;
return this._node;
},

push: function() {
this._nodes.push(this._node);
this._node = {};
},

unshift: function() {
this._nodes.unshift(this._node);
this._node = {};
},

yield: function() {
var _nodes = this._nodes;
this.initialize();
return _nodes;
}
};
205 changes: 166 additions & 39 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit f441217

Please sign in to comment.