Skip to content

Handle semantic models across syntax trees in local data flow analysis - #1277

Merged
meziantou merged 1 commit into
mainfrom
investigate-issue-1276-exception
Aug 12, 2026
Merged

Handle semantic models across syntax trees in local data flow analysis#1277
meziantou merged 1 commit into
mainfrom
investigate-issue-1276-exception

Conversation

@meziantou

@meziantou meziantou commented Aug 12, 2026

Copy link
Copy Markdown
Owner

Summary

  • Resolve semantic models for initializer and assignment syntax from other syntax trees.
  • Avoid incorrect span and semantic-model assumptions across partial declarations.
  • Add regression tests for cross-file fields used by blocking-call and comparer analyzers.

Testing

  • Added and ran targeted analyzer regression tests for cross-syntax-tree scenarios.

Fix #1276

@meziantou
meziantou merged commit 340514b into main Aug 12, 2026
11 checks passed
@meziantou
meziantou deleted the investigate-issue-1276-exception branch August 12, 2026 15:43
This was referenced Aug 12, 2026
This was referenced Aug 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DoNotUseBlockingeCallInAsyncContextAnalyzer throws AD0001 / System.ArgumentException: Syntax node is not within syntax tree

1 participant