Adding support for subscripts to qualified names. This also removes the QN copy...
authorA. Unique TensorFlower <gardener@tensorflow.org>
Wed, 7 Mar 2018 02:06:08 +0000 (18:06 -0800)
committerTensorFlower Gardener <gardener@tensorflow.org>
Wed, 7 Mar 2018 02:10:24 +0000 (18:10 -0800)
commit1220eb82cca62e792347a222bdcc976842ba215d
treee399b60c26d0269af6b04d6071f03b2e08335c20
parent7f0915562571512f369119f2b5a467e65e478445
Adding support for subscripts to qualified names.  This also removes the QN copy constructor and adds an assert to ensure that the no attribute/no subscript QN constructor does not receive any strings with '.', '[', or ']'.  Additionally this changes the self.qn construction to be a tuple of (base QN, attribute/subscript) instead of a concatenation of the base QN and attribute/subscript so that the has_attr and has_subscript fields are handled properly.  Constant subscripts are not yet supported.

PiperOrigin-RevId: 188111933
tensorflow/contrib/py2tf/pyct/ast_util_test.py
tensorflow/contrib/py2tf/pyct/qual_names.py
tensorflow/contrib/py2tf/pyct/qual_names_test.py