Skeleton for source language abstraction. There's SourceLanguage with several
subclasses, though they don't do much yet. SourceCode is now associated with a SourceLanguage. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31544 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -20,7 +20,8 @@ class SourceFile;
|
||||
class FileSourceCode : public SourceCode {
|
||||
public:
|
||||
FileSourceCode(LocatableFile* file,
|
||||
SourceFile* sourceFile);
|
||||
SourceFile* sourceFile,
|
||||
SourceLanguage* language);
|
||||
virtual ~FileSourceCode();
|
||||
|
||||
status_t Init();
|
||||
@@ -30,6 +31,8 @@ public:
|
||||
virtual bool Lock();
|
||||
virtual void Unlock();
|
||||
|
||||
virtual SourceLanguage* GetSourceLanguage() const;
|
||||
|
||||
virtual int32 CountLines() const;
|
||||
virtual const char* LineAt(int32 index) const;
|
||||
|
||||
@@ -49,6 +52,7 @@ private:
|
||||
BLocker fLock;
|
||||
LocatableFile* fFile;
|
||||
SourceFile* fSourceFile;
|
||||
SourceLanguage* fLanguage;
|
||||
Array<SourceLocation> fSourceLocations;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user