8230847: Trees.getScope may crash when invoked for statement inside switch.
Summary: More thoroughly avoiding side-effects when attributing (to) for Trees.getScope.
Reviewed-by: mcimadamore
^build/
^dist/
^.idea/
nbproject/private/
^webrev
^.src-rev$
^.jib/
(^|/)\.DS_Store
(^|/)\.metadata/
(^|/)\.recommenders/
test/nashorn/script/external
test/nashorn/lib
NashornProfile.txt
(^|/)JTreport/
(^|/)JTwork/
(^|/)\.git/
^src/utils/hsdis/build/