GNU Octave 10.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 
Loading...
Searching...
No Matches
tree_no_op_command Class Reference

#include "pt-cmd.h"

Inheritance diagram for tree_no_op_command:
tree_command tree

Public Member Functions

 tree_no_op_command (const std::string &cmd, bool eof, const token &tok)
 
 ~tree_no_op_command ()=default
 
void accept (tree_walker &tw)
 
void attach_trailing_comments (const comment_list &lst)
 
filepos beg_pos () const
 
filepos end_pos () const
 
bool is_end_of_fcn_or_script () const
 
bool is_end_of_file () const
 
comment_list leading_comments () const
 
std::string original_command ()
 
comment_list trailing_comments () const
 
void update_end_pos (const filepos &pos)
 
- Public Member Functions inherited from tree_command
 tree_command ()=default
 
virtual ~tree_command ()=default
 
- Public Member Functions inherited from tree
 tree ()
 
virtual ~tree ()=default
 
const std::string bp_cond () const
 
virtual int column () const
 
virtual void delete_breakpoint ()
 
bool is_active_breakpoint (tree_evaluator &tw) const
 
bool is_breakpoint () const
 
virtual int line () const
 
bool meets_bp_condition (tree_evaluator &tw) const
 
virtual void set_breakpoint (const std::string &condition)
 
std::string str_print_code ()
 

Detailed Description

Definition at line 63 of file pt-cmd.h.

Constructor & Destructor Documentation

◆ tree_no_op_command()

tree_no_op_command::tree_no_op_command ( const std::string &  cmd,
bool  eof,
const token tok 
)
inline

Definition at line 67 of file pt-cmd.h.

◆ ~tree_no_op_command()

tree_no_op_command::~tree_no_op_command ( )
default

Member Function Documentation

◆ accept()

void tree_no_op_command::accept ( tree_walker tw)
inlinevirtual

Implements tree.

Definition at line 98 of file pt-cmd.h.

References tree_walker::visit_no_op_command().

◆ attach_trailing_comments()

void tree_no_op_command::attach_trailing_comments ( const comment_list lst)
inline

Definition at line 88 of file pt-cmd.h.

References token::trailing_comments().

◆ beg_pos()

filepos tree_no_op_command::beg_pos ( ) const
inlinevirtual

Implements tree.

Definition at line 75 of file pt-cmd.h.

References token::beg_pos().

◆ end_pos()

filepos tree_no_op_command::end_pos ( ) const
inlinevirtual

Implements tree.

Definition at line 76 of file pt-cmd.h.

References token::end_pos().

◆ is_end_of_fcn_or_script()

◆ is_end_of_file()

bool tree_no_op_command::is_end_of_file ( ) const
inline

Definition at line 108 of file pt-cmd.h.

Referenced by tree_statement::is_end_of_file(), and update_end_pos().

◆ leading_comments()

comment_list tree_no_op_command::leading_comments ( ) const
inlinevirtual

Reimplemented from tree.

Definition at line 86 of file pt-cmd.h.

References token::leading_comments().

◆ original_command()

std::string tree_no_op_command::original_command ( )
inline

Definition at line 110 of file pt-cmd.h.

Referenced by tree_print_code::visit_no_op_command().

◆ trailing_comments()

comment_list tree_no_op_command::trailing_comments ( ) const
inline

Definition at line 93 of file pt-cmd.h.

References token::trailing_comments().

◆ update_end_pos()

void tree_no_op_command::update_end_pos ( const filepos pos)
inlinevirtual

Reimplemented from tree_command.

Definition at line 78 of file pt-cmd.h.

References token::end_pos(), error(), is_end_of_fcn_or_script(), and is_end_of_file().


The documentation for this class was generated from the following file: