filename property

String? get filename

Retrieves the filename from the enclosing Program. Returns null if the node is orphaned.

Implementation

String? get filename {
  Program? program = enclosingProgram;
  if (program != null) return program.filename;
  return null;
}