import { Break } from './break'; import { Return } from './return'; import { Assign } from './assign'; import { ArrayIndexAssign } from './arrayAssign'; import { Declaration } from './declaration'; import { ArrayDeclaration } from './arrayDeclaration'; import { While } from './while'; import { For } from './for'; import { Function } from './function'; import { IfThenElse } from './ifThenElse'; import { CommandBlock } from './commandBlock'; import { RepeatUntil } from './repeatUntil'; import { Switch } from './switch'; import { Case } from './case'; import { SysCall } from './sysCall'; import { FormalParameter } from './formalParameter'; import { FunctionCall } from './../expressions/functionCall'; //Proxy to expression since they do exatcly the same thing import { Command } from './command'; export { Break, Return, Assign, ArrayIndexAssign, Declaration, ArrayDeclaration, While, For, Function, IfThenElse, CommandBlock, RepeatUntil, Switch, Case, SysCall, FormalParameter, FunctionCall }; 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; } };