Repository navigation
Guard native flyout placement writes with an internal analyzer - #1835
Open
PaperHammer (PaperHammer) wants to merge 1 commit into
Open
PaperHammer (PaperHammer) wants to merge 1 commit into
PaperHammer (PaperHammer) wants to merge 1 commit into
Conversation
PaperHammer (PaperHammer)
requested a review
from Chris Anderson (codemonkeychris)
as a code owner
December 4, 2026 08:55
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Replace the negative syntactic source scan with the repo-only
REACTOR_FLYOUT_001analyzer. Detected native placement writes outside the exactFlyoutPlacement.Applymethod now produce an Error diagnostic during editing and compilation.Placement,PlacementPropertyandDependencyObjectwriter symbols instead of guessing from type names. This handles inheritance, using aliases and target-typed initializers while allowing immutable Element descriptions and unrelated same-named properties.Linked issue / spec
Fixes #964.
Follows #967, which consolidated the placement helpers. The existing
FlyoutPlacement.Applyruntime behavior is unchanged.Test plan
dotnet restore Reactor.slnx, thendotnet build Reactor.slnx --no-restore -c Release: passed with 0 errors and 369 warnings.git diff --check.Reactor.Testssuite green: the Release/x64 run has 16,978 passed, 19 skipped and 2 failed.The two failures are the existing CS1503 string-to-Element suggestion cases in
SymbolSuggesterTestsandDidYouMeanAnalyzerParityTests. Both also failedafter rebuilding and running the unmodified
53b094b8baseline.Risk / breaking changes
No public API or application runtime behavior changes. The analyzer remains
internal to the Reactor build and is not distributed to consumers.
Local alias inference deliberately skips executable bodies containing exception
regions, switch/patterns, deconstruction or ref/out operations. Tuple and heap
storage, captured locals, parameters and helper-return origins are not tracked.
Direct native property and direct DP-symbol checks remain active in those bodies.
The analyzer detects bypass writes, not deleted calls. The method-level positive
inventory and per-branch live fixtures therefore remain independent safeguards.
Focused unpackaged native fixtures were rerun. Full selftests, packaged tests,
E2E and NativeAOT runtime validation were not rerun for this change.