| 123456789101112131415161718192021 |
- import { Command } from "./command";
- export class Comment extends Command {
- constructor (text, isInline = false, parentCommand = null) {
- super();
- this.type = "comment";
- this.comment_text = text;
- this.comment = text;
- this.value = text;
- this._text = text;
- this.isInline = isInline;
- this.parentCommand = parentCommand;
- }
- static isInlineComment (comment) {
- return comment && comment.isInline === true;
- }
- }
|