Interface IASTNodeLocation

All Known Subinterfaces:
IASTCopyLocation, IASTFileLocation, IASTImageLocation, IASTMacroExpansion, IASTMacroExpansionLocation

public interface IASTNodeLocation
A NodeLocation represents the source location of a given node. Most often this is a file it may be other fancy things like macro expansions.
Restriction:
This interface is not intended to be implemented by clients.
Restriction:
This interface is not intended to be extended by clients.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final IASTNodeLocation[]
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Return a file location that best maps into this location.
    int
    This is the length of the node within the file or macro-expansion.
    int
    This is the offset within either the file or a macro-expansion.
  • Field Details

  • Method Details

    • getNodeOffset

      int getNodeOffset()
      This is the offset within either the file or a macro-expansion.
    • getNodeLength

      int getNodeLength()
      This is the length of the node within the file or macro-expansion.
    • asFileLocation

      IASTFileLocation asFileLocation()
      Return a file location that best maps into this location.