SourceFile.feature
The package-level features enabled for this package. Only present if the SourceFile represents a BUILD file.
SourceFile.license
License attribute for the file.
SourceFile.location
The location of the source file. This is a path with a line number and a column number not a label in the build system.
SourceFile.name
The name of the source file (a label).
SourceFile.package_contains_errors
True if the package contains an error. Only present if the SourceFile represents a BUILD file.
SourceFile.package_group
Labels of package groups that are mentioned in the visibility declaration for this source file.
SourceFile.subinclude
Labels of .bzl (Starlark) files that are transitively loaded in this BUILD file. This is present only when the SourceFile represents a BUILD file that loaded .bzl files. TODO(bazel-team): Rename this field.
SourceFile.visibility_label
Labels mentioned in the visibility declaration (including :pkg and //visibility: ones)

