diff options
author | Sven Boemer <sbomer@gmail.com> | 2022-07-15 21:40:18 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-15 21:40:18 +0300 |
commit | d27ff61b711aa685006d6d55057faf01b482114f (patch) | |
tree | 729bcfe2431011ee1eeb2e8a13e88f41ca5afc8f /global.json | |
parent | 072ebe7c115e80bf2555bb5f02049379e6bf9722 (diff) |
Analyze nested functions in Roslyn analyzer (#2892)
This is the Roslyn analyzer counterpart to
bc46e445deb1411cc597019d693ddc5b4e5e24f4.
It adds detection of captured locals, and conservatively analyzes
them with all values that it encounters in the method. The
analyzer makes no attempt to warn on reflection access to
compiler-generated fields, because the compilation strategy for
these is not known by the analyzer.
Unlike the linker, this doesn't do conservative analysis for
hoisted locals in state machine methods. The analyzer already
understands control flow within state machines the same way it
does for normal methods, so we just continue using that behavior
here. We could consider improving the linker's analysis to match,
but it would require a deeper understanding of the state machine
methods.
Diffstat (limited to 'global.json')
0 files changed, 0 insertions, 0 deletions