dart analyze is good at what it checks: type errors, missing imports, lint rules — mostly one declaration or file at a time. It doesn’t follow the graph of references across your whole project: which public members are used anywhere at all, which libraries import each other in a circle, which helper exists twice under different names.
Text matching can’t answer those questions reliably. A regex can’t tell a declaration from a reference, a local variable from a public export, or generated code from code you wrote.
loam.dev works on the resolved element model: every symbol is a typed element with one identity, and every reference points to exactly that element. The rules work on that model, not on raw text. In practice:
- A name that merely looks like another one is never mistaken for it.
- Generated files and code-generator inputs are recognised automatically.
- Renaming a class changes nothing — what counts is whether it is referenced, not what it is called.
- References across libraries and packages are followed correctly.
That is what “semantics over syntax” means: the rules see your code the way the compiler does, not the way a text editor does.