mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
integrated parser into graphite target editor
This commit is contained in:
parent
dd902d5a15
commit
bc3cad209f
@ -32,7 +32,7 @@ function (angular, _, config, graphiteFunctions, Parser) {
|
||||
|
||||
if (astNode.type === 'function') {
|
||||
var innerFunc = {};
|
||||
innerFunc.def = _.findWhere($scope.funcDefs, { name: astNode.name })
|
||||
innerFunc.def = _.findWhere($scope.funcDefs, { name: astNode.name });
|
||||
innerFunc.params = innerFunc.def.defaultParams;
|
||||
|
||||
_.each(astNode.params, function(param, index) {
|
||||
|
@ -577,7 +577,7 @@ define([
|
||||
* var str = "hello\
|
||||
* world";
|
||||
*/
|
||||
scanStringLiteral: function (checks) {
|
||||
scanStringLiteral: function () {
|
||||
/*jshint loopfunc:true */
|
||||
var quote = this.peek();
|
||||
|
||||
@ -587,8 +587,6 @@ define([
|
||||
}
|
||||
|
||||
var value = "";
|
||||
var startLine = this.line;
|
||||
var startChar = this.char;
|
||||
|
||||
this.skip();
|
||||
|
||||
|
@ -11,11 +11,6 @@ define([
|
||||
StringLiteral: 6
|
||||
};
|
||||
|
||||
function Node(type, value) {
|
||||
this.type = type;
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
function Parser(expression) {
|
||||
this.expression = expression;
|
||||
this.lexer = new Lexer(expression);
|
||||
|
Loading…
Reference in New Issue
Block a user