ruff/crates/ruff_python_semantic/src
Charlie Marsh 9e1039f823
Enable attribute lookups via semantic model (#5536)
## Summary

This PR enables us to resolve attribute accesses within files, at least
for static and class methods. For example, we can now detect that this
is a function access (and avoid a false-positive):

```python
class Class:
    @staticmethod
    def error():
        return ValueError("Something")


# OK
raise Class.error()
```

Closes #5487.

Closes #5416.
2023-07-05 15:19:14 -04:00
..
analyze Remove some additional manual iterator matches (#5482) 2023-07-03 16:29:59 +00:00
binding.rs Enable attribute lookups via semantic model (#5536) 2023-07-05 15:19:14 -04:00
context.rs Remove separate `ReferenceContext` enum (#4631) 2023-05-24 15:12:38 +00:00
definition.rs Run `rustfmt` on nightly to clean up erroneous comments (#5106) 2023-06-15 00:19:05 +00:00
globals.rs Make some of `ruff_python_semantic` `pub(crate)` (#5093) 2023-06-14 17:49:37 +00:00
lib.rs Move `StarImport` to its own module (#5186) 2023-06-20 13:12:46 -04:00
model.rs Enable attribute lookups via semantic model (#5536) 2023-07-05 15:19:14 -04:00
node.rs Make some of `ruff_python_semantic` `pub(crate)` (#5093) 2023-06-14 17:49:37 +00:00
reference.rs Make some of `ruff_python_semantic` `pub(crate)` (#5093) 2023-06-14 17:49:37 +00:00
scope.rs Run shadowed-variable analyses in deferred handlers (#5181) 2023-06-29 00:08:18 +00:00
star_import.rs Move `StarImport` to its own module (#5186) 2023-06-20 13:12:46 -04:00