Commit 8452dd3c by Aaron Leung

Looking into reorganizing the Node struct.

parent 6b8405d1
namespace Sass {
inline bool Node::has_children() { return ip_->has_children; }
inline bool Node::has_statements() { return ip_->has_statements; }
inline bool Node::has_blocks() { return ip_->has_blocks; }
inline bool Node::has_expansions() { return ip_->has_expansions; }
inline bool Node::has_backref() { return ip_->has_backref; }
inline bool Node::from_variable() { return ip_->from_variable; }
inline bool Node::eval_me() { return ip_->eval_me; }
inline bool Node::is_unquoted() { return ip_->is_unquoted; }
inline bool Node::is_numeric() { return ip_->is_numeric(); }
inline size_t Node::line_number() { return ip_->line_number; }
}
\ No newline at end of file
#include <string>
namespace Sass {
using namespace std;
class Node {
private:
Node_Impl* ip_;
public:
bool has_children();
bool has_statements();
bool has_blocks();
bool has_expansions();
bool has_backref();
bool from_variable();
bool eval_me();
bool is_unquoted();
bool is_numeric();
string file_name() const;
size_t line_number() const;
size_t size() const;
Node_Impl& at(size_t i) const;
Node_Impl& operator[](size_t i) const;
Node_Impl& push_back(Node n);
Node_Impl& operator<<(Node n);
};
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment