CodeLocation

interface CodeLocation

"I have a location in source code."

A mix-in interface for any metamodel entity that corresponds to a specific spot in a source file — a function definition, an instruction, a class declaration, etc.

Every field is nullable because source-level information may be partial: an instruction discovered by the analyzer might know its mangled symbol but not its file/line if debug info was stripped; a function declared in a header might lack a definition location.

  • source — repo-rooted file path, resolved once at DSL configuration time. See com.stigway.references.StigRepoFile.

  • line / column — 1-based source coordinates of the construct's primary token (e.g. the function name, the instruction's dbg !N).

  • mangledName — the symbol as it appears in the linker's view of the binary (e.g. _ZN3foo3barEv). Stable across compilations.

  • demangledName — human-readable form (e.g. foo::bar()). Derived from mangledName via c++filt or equivalent; populated lazily.

Inheritors

Properties

Link copied to clipboard
abstract val column: Int?
Link copied to clipboard
abstract val demangledName: String?
Link copied to clipboard
abstract val line: Int?
Link copied to clipboard
abstract val mangledName: String?
Link copied to clipboard
abstract val source: StigRepoFile?
Generated with STIG