We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 79b1c14 commit 7b76d44Copy full SHA for 7b76d44
hkpy/hklib/fi/fiparser.py
@@ -98,7 +98,14 @@ def processJsonPlus(ast):
98
99
100
def processArray(ast):
101
- raise Exception('Not supported!')
+ array = []
102
+ if len(ast.children) > 0:
103
+ members = ast.children
104
+ for member in members:
105
+ element = processJsonPlus(member)
106
+ array.append(element)
107
+ return array
108
+
109
110
def processObject(ast):
111
object = {}
tests/test_fi.py
@@ -53,3 +53,6 @@
53
data = repo.resolve_fi(fi)
54
repo.persist_fi(fi)
55
56
57
+# Test parse
58
+fi = FI('file.func(["A", "B"])')
0 commit comments