Commit d9812ac3 authored by Roberto Raggi's avatar Roberto Raggi
Browse files

Fixed the signature of Symbol::getPosition() & co.

parent 9d90df88
......@@ -247,13 +247,13 @@ StringLiteral *Symbol::fileId() const
return fileId;
}
void Symbol::getPosition(unsigned *line, unsigned *column, StringLiteral **fileId)
void Symbol::getPosition(unsigned *line, unsigned *column, StringLiteral **fileId) const
{ translationUnit()->getPosition(_sourceOffset, line, column, fileId); }
void Symbol::getStartPosition(unsigned *line, unsigned *column, StringLiteral **fileId)
void Symbol::getStartPosition(unsigned *line, unsigned *column, StringLiteral **fileId) const
{ translationUnit()->getPosition(_startOffset, line, column, fileId); }
void Symbol::getEndPosition(unsigned *line, unsigned *column, StringLiteral **fileId)
void Symbol::getEndPosition(unsigned *line, unsigned *column, StringLiteral **fileId) const
{ translationUnit()->getPosition(_endOffset, line, column, fileId); }
const char *Symbol::fileName() const
......
......@@ -115,9 +115,9 @@ public:
unsigned endOffset() const;
void setEndOffset(unsigned offset);
void getPosition(unsigned *line, unsigned *column = 0, StringLiteral **fileId = 0);
void getStartPosition(unsigned *line, unsigned *column = 0, StringLiteral **fileId = 0);
void getEndPosition(unsigned *line, unsigned *column = 0, StringLiteral **fileId = 0);
void getPosition(unsigned *line, unsigned *column = 0, StringLiteral **fileId = 0) const;
void getStartPosition(unsigned *line, unsigned *column = 0, StringLiteral **fileId = 0) const;
void getEndPosition(unsigned *line, unsigned *column = 0, StringLiteral **fileId = 0) const;
/// Returns this Symbol's name.
Name *name() const;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment