diff options
Diffstat (limited to 'src/wasm-s-parser.h')
-rw-r--r-- | src/wasm-s-parser.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/wasm-s-parser.h b/src/wasm-s-parser.h index 4c49a7773..a2faea771 100644 --- a/src/wasm-s-parser.h +++ b/src/wasm-s-parser.h @@ -73,7 +73,10 @@ public: // string methods IString str() const; + // convert a string to a string std::string toString() const; + // convert anything to a string + std::string forceString() const; Element* setString(IString str__, bool dollared__, bool quoted__); Element* setMetadata(size_t line_, size_t col_, SourceLocation* startLoc_); @@ -83,7 +86,7 @@ public: template<typename T> bool operator!=(T t) { return !(*this == t); } // printing - friend std::ostream& operator<<(std::ostream& o, Element& e); + friend std::ostream& operator<<(std::ostream& o, const Element& e); void dump(); }; |