Changeset 191135 in webkit for trunk/Source/JavaScriptCore/parser/Lexer.h
- Timestamp:
- Oct 15, 2015, 1:50:02 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/parser/Lexer.h
r188824 r191135 89 89 bool sawError() const { return m_error; } 90 90 String getErrorMessage() const { return m_lexErrorMessage; } 91 String sourceURL() const { return m_sourceURL; } 92 String sourceMappingURL() const { return m_sourceMappingURL; } 91 93 void clear(); 92 94 void setOffset(int offset, int lineStartOffset) … … 114 116 m_terminator = terminator; 115 117 } 116 117 SourceProvider* sourceProvider() const { return m_source->provider(); }118 118 119 119 JSTokenType lexExpectIdentifier(JSToken*, unsigned, bool strictMode); … … 153 153 154 154 ALWAYS_INLINE bool lastTokenWasRestrKeyword() const; 155 156 ALWAYS_INLINE void skipWhitespace(); 155 157 156 158 template <int shiftAmount> void internalShift(); … … 178 180 ALWAYS_INLINE bool parseNumberAfterExponentIndicator(); 179 181 ALWAYS_INLINE bool parseMultilineComment(); 182 183 ALWAYS_INLINE void parseCommentDirective(); 184 ALWAYS_INLINE String parseCommentDirectiveValue(); 185 186 template <unsigned length> 187 ALWAYS_INLINE bool consume(const char (&input)[length]); 180 188 181 189 static const size_t initialReadBufferCapacity = 32; … … 204 212 String m_lexErrorMessage; 205 213 214 String m_sourceURL; 215 String m_sourceMappingURL; 216 206 217 T m_current; 207 218
Note:
See TracChangeset
for help on using the changeset viewer.