Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 2.1k
Rust: Account for attribute expansions in path resolution#20454
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
c7a9cc532365fd2c84b49a9d766260ceb8972103adafb6d30File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -25,9 +25,9 @@ private module ResolveTest implements TestSig { | ||
| private predicate item(ItemNode i, string value) { | ||
| exists(string filepath, int line, boolean inMacro | itemAt(i, filepath, line, inMacro) | | ||
| commmentAt(value, filepath, line) and inMacro = false | ||
| commmentAt(value, filepath, line) | ||
CopilotAI | ||
| or | ||
| not (commmentAt(_, filepath, line) and inMacro = false) and | ||
| not commmentAt(_, filepath, line) and | ||
| value = i.getName() | ||
| ) | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, I think it is easier just to make
getRelevantLocatablepublic (I already do that in on of my PRs).There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In this case I wanted to see the
ItemNodes in a given range.getRelevantLocatablewould give allLocateables wouldn't it?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes; perhaps your use case was different from mine; I would add calls to
Debug::getRelevantLocatablethroughout the source code when debugging.