Lines Matching defs:loc
513 var loc = node && node.loc,
519 if (loc) {
520 line = loc.start.line;
521 endLineNumber = loc.end.line;
522 column = loc.start.column;
523 endColumn = loc.end.column;
541 if (loc) {
2283 strict: function strict(obj, name, loc) {
2286 loc: loc
2770 loc: yy.locInfo(this._$)
2779 loc: yy.locInfo(this._$)
2809 program = yy.prepareProgram([inverse], $$[$0 - 1].loc);
2835 loc: yy.locInfo(this._$)
2857 loc: yy.locInfo(this._$)
2862 this.$ = { type: 'Hash', pairs: $$[$0], loc: yy.locInfo(this._$) };
2865 this.$ = { type: 'HashPair', key: yy.id($$[$0 - 2]), value: $$[$0], loc: yy.locInfo(this._$) };
2877 this.$ = { type: 'StringLiteral', value: $$[$0], original: $$[$0], loc: yy.locInfo(this._$) };
2880 this.$ = { type: 'NumberLiteral', value: Number($$[$0]), original: Number($$[$0]), loc: yy.locInfo(this._$) };
2883 this.$ = { type: 'BooleanLiteral', value: $$[$0] === 'true', original: $$[$0] === 'true', loc: yy.locInfo(this._$) };
2886 this.$ = { type: 'UndefinedLiteral', original: undefined, value: undefined, loc: yy.locInfo(this._$) };
2889 this.$ = { type: 'NullLiteral', original: null, value: null, loc: yy.locInfo(this._$) };
3061 this.parseError(errStr, { text: this.lexer.match, token: this.terminals_[symbol] || symbol, line: this.lexer.yylineno, loc: yyloc, expected: expected });
3858 var errorNode = { loc: open.path.loc };
3895 function preparePath(data, parts, loc) {
3896 loc = this.locInfo(loc);
3912 throw new _exception2['default']('Invalid path: ' + original, { loc: loc });
3927 loc: loc
3944 loc: this.locInfo(locInfo)
3956 loc: locInfo
3968 loc: locInfo
4013 loc: this.locInfo(locInfo)
4017 function prepareProgram(statements, loc) {
4018 if (!loc && statements.length) {
4019 var firstLoc = statements[0].loc,
4020 lastLoc = statements[statements.length - 1].loc;
4024 loc = {
4042 loc: loc
4057 loc: this.locInfo(locInfo)
4416 loc: this.sourceNode[0].loc
4627 loc: literal.loc
4749 this.source.currentLocation = opcode.loc;
4750 firstLoc = firstLoc || opcode.loc;
5742 options.loc = JSON.stringify(this.source.currentLocation);
5852 function castChunk(chunk, codeGen, loc) {
5857 ret.push(codeGen.wrap(chunk[i], loc));
5876 prepend: function prepend(source, loc) {
5877 this.source.unshift(this.wrap(source, loc));
5879 push: function push(source, loc) {
5880 this.source.push(this.wrap(source, loc));
5898 var loc = this.currentLocation || { start: {} };
5899 return new SourceNode(loc.start.line, loc.start.column, this.srcFile);
5902 var loc = arguments.length <= 1 || arguments[1] === undefined ? this.currentLocation || { start: {} } : arguments[1];
5908 chunk = castChunk(chunk, this, loc);
5910 return new SourceNode(loc.start.line, loc.start.column, this.srcFile, chunk);