File tree Expand file tree Collapse file tree 3 files changed +9
-18
lines changed
lib/codeql/swift/controlflow/internal
library-tests/dataflow/dataflow/CONSISTENCY Expand file tree Collapse file tree 3 files changed +9
-18
lines changed Original file line number Diff line number Diff line change @@ -969,6 +969,15 @@ module Decls {
969
969
result .asAstNode ( ) = ast .getPattern ( j ) .getFullyUnresolved ( )
970
970
)
971
971
or
972
+ // synthesized pattern bindings for property wrappers may be sharing the init with the backed
973
+ // variable declaration, so we need to skip those
974
+ not exists ( VarDecl decl |
975
+ ast =
976
+ [
977
+ decl .getPropertyWrapperBackingVarBinding ( ) ,
978
+ decl .getPropertyWrapperProjectionVarBinding ( )
979
+ ]
980
+ ) and
972
981
exists ( int j |
973
982
i = 2 * j + 1 and
974
983
result .asAstNode ( ) = ast .getInit ( j ) .getFullyConverted ( )
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
multipleSuccessors
2
- | test.swift:252:6:252:27 | call to DidSetSource.init(wrappedValue:) | successor | file://:0:0:0:0 | var ... = ... |
3
- | test.swift:252:6:252:27 | call to DidSetSource.init(wrappedValue:) | successor | test.swift:252:19:252:27 | var ... = ... |
4
2
| test.swift:488:8:488:12 | let ...? | no-match | test.swift:488:27:488:27 | y |
5
3
| test.swift:488:8:488:12 | let ...? | no-match | test.swift:493:9:493:9 | tuple1 |
6
- deadEnd
7
- | file://:0:0:0:0 | var ... = ... |
You can’t perform that action at this time.
0 commit comments