Changeset 62849 in webkit for trunk/JavaScriptCore/parser/Lexer.h
- Timestamp:
- Jul 8, 2010, 3:07:50 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/parser/Lexer.h
r62848 r62849 35 35 namespace JSC { 36 36 37 union JSTokenData; 38 struct JSTokenInfo; 37 39 class RegExp; 38 40 … … 50 52 51 53 // Functions for the parser itself. 52 int lex( void* lvalp, void* llocp);54 int lex(JSTokenData* lvalp, JSTokenInfo* llocp); 53 55 int lineNumber() const { return m_lineNumber; } 54 56 void setLastLineNumber(int lastLineNumber) { m_lastLineNumber = lastLineNumber; } … … 93 95 ALWAYS_INLINE bool lastTokenWasRestrKeyword() const; 94 96 95 ALWAYS_INLINE bool parseString( void* lvalp);97 ALWAYS_INLINE bool parseString(JSTokenData* lvalp); 96 98 97 99 static const size_t initialReadBufferCapacity = 32; … … 144 146 } 145 147 146 // A bridge for yacc from the C world to the C++ world.147 inline int jscyylex(void* lvalp, void* llocp, void* globalData)148 {149 return static_cast<JSGlobalData*>(globalData)->lexer->lex(lvalp, llocp);150 }151 152 148 } // namespace JSC 153 149
Note:
See TracChangeset
for help on using the changeset viewer.