2009-06-21 13:17:21 +00:00
|
|
|
/*
|
|
|
|
* Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de.
|
|
|
|
* Distributed under the terms of the MIT License.
|
|
|
|
*/
|
|
|
|
#ifndef SOURCE_CODE_H
|
|
|
|
#define SOURCE_CODE_H
|
|
|
|
|
|
|
|
#include <Referenceable.h>
|
|
|
|
|
2009-06-22 21:51:32 +00:00
|
|
|
#include "TargetAddressRange.h"
|
2009-06-21 13:17:21 +00:00
|
|
|
|
|
|
|
|
|
|
|
class Statement;
|
|
|
|
|
|
|
|
|
|
|
|
class SourceCode : public Referenceable {
|
|
|
|
public:
|
2009-06-22 01:13:57 +00:00
|
|
|
virtual ~SourceCode();
|
2009-06-21 13:17:21 +00:00
|
|
|
|
2009-06-22 01:13:57 +00:00
|
|
|
virtual int32 CountLines() const = 0;
|
|
|
|
virtual const char* LineAt(int32 index) const = 0;
|
2009-06-21 13:17:21 +00:00
|
|
|
|
2009-06-22 01:13:57 +00:00
|
|
|
virtual Statement* StatementAtLine(int32 index) const = 0;
|
2009-06-21 13:17:21 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif // SOURCE_CODE_H
|