mirror of
https://github.com/Instadapp/Swap-Aggregator-Subgraph.git
synced 2024-07-29 21:57:12 +00:00
33 lines
663 B
JavaScript
33 lines
663 B
JavaScript
"use strict";
|
|
|
|
exports.Comment = void 0;
|
|
|
|
var _constants = require("../constants");
|
|
|
|
var _Node = require("./Node");
|
|
|
|
var _Range = require("./Range");
|
|
|
|
class Comment extends _Node.Node {
|
|
constructor() {
|
|
super(_constants.Type.COMMENT);
|
|
}
|
|
/**
|
|
* Parses a comment line from the source
|
|
*
|
|
* @param {ParseContext} context
|
|
* @param {number} start - Index of first character
|
|
* @returns {number} - Index of the character after this scalar
|
|
*/
|
|
|
|
|
|
parse(context, start) {
|
|
this.context = context;
|
|
const offset = this.parseComment(start);
|
|
this.range = new _Range.Range(start, offset);
|
|
return offset;
|
|
}
|
|
|
|
}
|
|
|
|
exports.Comment = Comment; |