Changes in src/Parser/ParseNode.h [1dda8de:e15853c]
- File:
-
- 1 edited
-
src/Parser/ParseNode.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/ParseNode.h
r1dda8de re15853c 10 10 // Created On : Sat May 16 13:28:16 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Mon Apr 15 14:22:39 201913 // Update Count : 8 7412 // Last Modified On : Wed Feb 13 17:36:49 2019 13 // Update Count : 867 14 14 // 15 15 … … 132 132 void printOneLine( __attribute__((unused)) std::ostream & os, __attribute__((unused)) int indent = 0 ) const {} 133 133 134 Expression *get_expr() const { return expr.get(); } 134 135 template<typename T> 135 136 bool isExpressionType() const { return nullptr != dynamic_cast<T>(expr.get()); } 136 137 137 138 Expression * build() const { return const_cast<ExpressionNode *>(this)->expr.release(); } 138 139 std::unique_ptr<Expression> expr; // public because of lifetime implications140 139 private: 141 140 bool extension = false; 141 std::unique_ptr<Expression> expr; 142 142 }; // ExpressionNode 143 143
Note:
See TracChangeset
for help on using the changeset viewer.