ruff/crates/ruff_python_semantic/src
Charlie Marsh e80260a3c5
Remove source path from parser errors (#9322)
## Summary

I always found it odd that we had to pass this in, since it's really
higher-level context for the error. The awkwardness is further evidenced
by the fact that we pass in fake values everywhere (even outside of
tests). The source path isn't actually used to display the error; it's
only accessed elsewhere to _re-display_ the error in certain cases. This
PR modifies to instead pass the path directly in those cases.
2023-12-30 20:33:05 +00:00
..
analyze Remove source path from parser errors (#9322) 2023-12-30 20:33:05 +00:00
binding.rs Add a `BindingKind` for `WithItem` variables (#8594) 2023-11-09 22:44:49 -05:00
branches.rs Add branch detection to the semantic model (#6694) 2023-08-19 21:28:17 +00:00
context.rs Remove separate `ReferenceContext` enum (#4631) 2023-05-24 15:12:38 +00:00
definition.rs Add fix for `future-required-type-annotation` (#8711) 2023-11-16 03:08:02 +00:00
globals.rs Move `Ranged` into `ruff_text_size` (#6919) 2023-08-27 14:12:51 -04:00
lib.rs Use a single node hierarchy to track statements and expressions (#6709) 2023-08-21 21:32:57 -04:00
model.rs Respect attribute chains when resolving builtin call paths (#9309) 2023-12-29 15:13:24 +00:00
nodes.rs Move {AnyNodeRef, AstNode} to ruff_python_ast crate root (#8030) 2023-10-18 00:01:18 +00:00
reference.rs Allow `flake8-type-checking` rules to automatically quote runtime-evaluated references (#6001) 2023-12-13 03:12:38 +00:00
scope.rs Remove async AST node variants for `with`, `for`, and `def` (#6369) 2023-08-07 16:36:02 +00:00
star_import.rs Move `StarImport` to its own module (#5186) 2023-06-20 13:12:46 -04:00