Open tsandall opened 1 month ago
Some thoughts:
file
.--optimize
, where files are merged, renamed and whatnot? The annotations are kept in the process, but they would now apply to a different context than they did before.rule
scope, attributes like entrypoint
should not be allowed for this scope.
Currently we have subpackages, package, document, and rule scoped annotations. These each of their own valid use cases however none of them are ideal for applying annotations to all nodes in the current file. The package scope can work however if multiple files contribute to the same package then we generate an error. It would be useful to have a file scope. The file scope annotation should precede the package directive (however the 'package' scope directive should still be the default.)