This change introduces the structure ParseTypeUsage for passing information about type usage from the parser to it's client. It is used for passing data type and location information about return types and parameter types, which now get saved to the corresponding edges in the Storage.
20 lines
499 B
C++
20 lines
499 B
C++
#include "data/parser/ParseLocation.h"
|
|
|
|
ParseLocation::ParseLocation(
|
|
const std::string& filePath,
|
|
unsigned int startLineNumber, unsigned int startColumnNumber,
|
|
unsigned int endLineNumber, unsigned int endColumnNumber
|
|
)
|
|
: filePath(filePath)
|
|
, startLineNumber(startLineNumber)
|
|
, startColumnNumber(startColumnNumber)
|
|
, endLineNumber(endLineNumber)
|
|
, endColumnNumber(endColumnNumber)
|
|
{
|
|
}
|
|
|
|
bool ParseLocation::isValid() const
|
|
{
|
|
return startLineNumber > 0 && endLineNumber >= startLineNumber;
|
|
}
|