Changeset 128542 in webkit for trunk/Source/JavaScriptCore/parser/SourceProvider.h
- Timestamp:
- Sep 13, 2012, 6:50:17 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/parser/SourceProvider.h
r127191 r128542 1 1 /* 2 * Copyright (C) 2008, 2009 Apple Inc. All rights reserved.2 * Copyright (C) 2008, 2009, 2012 Apple Inc. All rights reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 57 57 } 58 58 59 virtual String getRange(int start, int end) const = 0; 60 virtual const StringImpl* data() const = 0; 61 virtual int length() const = 0; 62 59 virtual const String& source() const = 0; 60 String getRange(int start, int end) const 61 { 62 return source().substringSharingImpl(start, end - start); 63 } 64 63 65 const String& url() { return m_url; } 64 66 TextPosition startPosition() const { return m_startPosition; } … … 94 96 } 95 97 96 virtual String getRange(int start, int end) const OVERRIDE98 virtual const String& source() const OVERRIDE 97 99 { 98 return m_source .substringSharingImpl(start, end - start);100 return m_source; 99 101 } 100 const StringImpl* data() const { return m_source.impl(); }101 int length() const { return m_source.length(); }102 102 103 103 private:
Note:
See TracChangeset
for help on using the changeset viewer.