Allow assignment to subscripts in static analysis.
authorDan Moldovan <mdan@google.com>
Tue, 29 May 2018 15:45:28 +0000 (08:45 -0700)
committerTensorFlower Gardener <gardener@tensorflow.org>
Tue, 29 May 2018 15:47:58 +0000 (08:47 -0700)
commit9f38ecf3bd6c6e96bf3bb56f1e37f6aff180c21e
tree820d5fbf7dad4018f8ef2ea58eb5d42f4a5a6d1d
parentcff06379c2e1ac01de3b3c0ca32c3a3037d5b833
Allow assignment to subscripts in static analysis.

Move the handling of syntactic unpackings to a generic helper function since the pattern is used in multiple places. Update the type info analyzer to correctly process function arguments.

PiperOrigin-RevId: 198401368
tensorflow/contrib/autograph/pyct/static_analysis/type_info.py
tensorflow/contrib/autograph/pyct/static_analysis/type_info_test.py
tensorflow/contrib/autograph/pyct/transformer.py
tensorflow/contrib/autograph/pyct/transformer_test.py