File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -42,10 +42,12 @@ namespace jetpack {
4242 void TolerateUnexpectedToken ();
4343 void TolerateUnexpectedToken (const std::string& message);
4444
45+ [[nodiscard]]
4546 inline bool IsEnd () const {
4647 return index_ >= Length ();
4748 }
4849
50+ [[nodiscard]]
4951 inline uint32_t LineNumber () const {
5052 return line_number_;
5153 }
@@ -54,6 +56,7 @@ namespace jetpack {
5456 line_number_ = ln;
5557 }
5658
59+ [[nodiscard]]
5760 inline uint32_t Index () const {
5861 return index_;
5962 }
@@ -66,10 +69,12 @@ namespace jetpack {
6669 index_++;
6770 }
6871
72+ [[nodiscard]]
6973 inline uint32_t Column () const {
7074 return index_ - line_start_;
7175 }
7276
77+ [[nodiscard]]
7378 inline uint32_t LineStart () const {
7479 return line_start_;
7580 }
@@ -133,7 +138,7 @@ namespace jetpack {
133138 uint32_t line_number_ = 1u ;
134139 uint32_t line_start_ = 0u ;
135140
136- std::shared_ptr <parser::ParseErrorHandler> error_handler_;
141+ Sp <parser::ParseErrorHandler> error_handler_;
137142 UString source_;
138143 UString value_buffer_;
139144 bool is_module_ = false ;
You can’t perform that action at this time.
0 commit comments