decompiler 1.0.0
Public Member Functions | Private Attributes | List of all members
ghidra::Location Class Reference

A location within a specification being parsed. More...

#include <pcodecompile.hh>

Public Member Functions

 Location (void)
 Construct an uninitialized location.
 
 Location (const string &fname, const int4 line)
 Constructor.
 
string getFilename (void) const
 Get the base file name.
 
int4 getLineno (void) const
 Get the line number.
 
string format (void) const
 Return a text representation of this. More...
 

Private Attributes

string filename
 Base name of the file being parsed.
 
int4 lineno
 Line number within the file.
 

Detailed Description

A location within a specification being parsed.

Member Function Documentation

◆ format()

string ghidra::Location::format ( void  ) const

Return a text representation of this.

Returns
the Location as a string

References filename, and lineno.

Referenced by ghidra::SleighCompile::buildDecisionTrees(), ghidra::SleighCompile::checkCaseSensitivity(), and ghidra::SleighCompile::formatStatusMessage().


The documentation for this class was generated from the following files: