Changeset 233377 in webkit for trunk/Source/JavaScriptCore/parser/SourceCode.h
- Timestamp:
- Jun 29, 2018, 4:40:25 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/parser/SourceCode.h
r212365 r233377 80 80 SourceProvider* provider() const { return m_provider.get(); } 81 81 82 SourceCode subExpression(unsigned openBrace, unsigned closeBrace, int firstLine, int startColumn); 82 SourceCode subExpression(unsigned openBrace, unsigned closeBrace, int firstLine, int startColumn) const; 83 84 bool operator==(const SourceCode& other) const 85 { 86 return m_firstLine == other.m_firstLine 87 && m_startColumn == other.m_startColumn 88 && m_provider == other.m_provider 89 && m_startOffset == other.m_startOffset 90 && m_endOffset == other.m_endOffset; 91 } 92 93 bool operator!=(const SourceCode& other) const 94 { 95 return !(*this == other); 96 } 83 97 84 98 private: … … 92 106 } 93 107 94 inline SourceCode SourceCode::subExpression(unsigned openBrace, unsigned closeBrace, int firstLine, int startColumn) 108 inline SourceCode SourceCode::subExpression(unsigned openBrace, unsigned closeBrace, int firstLine, int startColumn) const 95 109 { 96 110 startColumn += 1; // Convert to base 1.
Note:
See TracChangeset
for help on using the changeset viewer.