From de065cfa14cd70aaab22c54b5d35359723c3eadf Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Mon, 31 Jan 2022 12:28:40 +0800 Subject: [PATCH] update dependencies --- ...plevel__test__test_analyze__analyze-2.snap | 14 ++++++++++++++ ...plevel__test__test_analyze__analyze-3.snap | 15 +++++++++++++++ ...plevel__test__test_analyze__analyze-4.snap | 17 +++++++++++++++++ ...plevel__test__test_analyze__analyze-5.snap | 15 +++++++++++++++ ...plevel__test__test_analyze__analyze-6.snap | 19 +++++++++++++++++++ ...toplevel__test__test_analyze__analyze.snap | 9 +++++++++ 6 files changed, 89 insertions(+) create mode 100644 nac3core/src/toplevel/snapshots/nac3core__toplevel__test__test_analyze__analyze-2.snap create mode 100644 nac3core/src/toplevel/snapshots/nac3core__toplevel__test__test_analyze__analyze-3.snap create mode 100644 nac3core/src/toplevel/snapshots/nac3core__toplevel__test__test_analyze__analyze-4.snap create mode 100644 nac3core/src/toplevel/snapshots/nac3core__toplevel__test__test_analyze__analyze-5.snap create mode 100644 nac3core/src/toplevel/snapshots/nac3core__toplevel__test__test_analyze__analyze-6.snap create mode 100644 nac3core/src/toplevel/snapshots/nac3core__toplevel__test__test_analyze__analyze.snap diff --git a/nac3core/src/toplevel/snapshots/nac3core__toplevel__test__test_analyze__analyze-2.snap b/nac3core/src/toplevel/snapshots/nac3core__toplevel__test__test_analyze__analyze-2.snap new file mode 100644 index 00000000..73e31784 --- /dev/null +++ b/nac3core/src/toplevel/snapshots/nac3core__toplevel__test__test_analyze__analyze-2.snap @@ -0,0 +1,14 @@ +--- +source: nac3core/src/toplevel/test.rs +assertion_line: 541 +expression: res_vec + +--- +[ + "Class {\nname: \"Generic_A\",\nancestors: [\"{class: Generic_A, params: [\\\"var6\\\"]}\", \"{class: B, params: []}\"],\nfields: [\"aa\", \"a\"],\nmethods: [(\"__init__\", \"fn[[], none]\"), (\"foo\", \"fn[[b=var5], none]\"), (\"fun\", \"fn[[a=int32], var6]\")],\ntype_vars: [\"var6\"]\n}\n", + "Function {\nname: \"Generic_A.__init__\",\nsig: \"fn[[], none]\",\nvar_id: [6]\n}\n", + "Function {\nname: \"Generic_A.fun\",\nsig: \"fn[[a=int32], var6]\",\nvar_id: [6]\n}\n", + "Class {\nname: \"B\",\nancestors: [\"{class: B, params: []}\"],\nfields: [\"aa\"],\nmethods: [(\"__init__\", \"fn[[], none]\"), (\"foo\", \"fn[[b=var5], none]\")],\ntype_vars: []\n}\n", + "Function {\nname: \"B.__init__\",\nsig: \"fn[[], none]\",\nvar_id: []\n}\n", + "Function {\nname: \"B.foo\",\nsig: \"fn[[b=var5], none]\",\nvar_id: []\n}\n", +] diff --git a/nac3core/src/toplevel/snapshots/nac3core__toplevel__test__test_analyze__analyze-3.snap b/nac3core/src/toplevel/snapshots/nac3core__toplevel__test__test_analyze__analyze-3.snap new file mode 100644 index 00000000..2b1f1eeb --- /dev/null +++ b/nac3core/src/toplevel/snapshots/nac3core__toplevel__test__test_analyze__analyze-3.snap @@ -0,0 +1,15 @@ +--- +source: nac3core/src/toplevel/test.rs +assertion_line: 541 +expression: res_vec + +--- +[ + "Function {\nname: \"foo\",\nsig: \"fn[[a=list[int32], b=tuple[var5, float]], A[5->B, 6->bool]]\",\nvar_id: []\n}\n", + "Class {\nname: \"A\",\nancestors: [\"{class: A, params: [\\\"var5\\\", \\\"var6\\\"]}\"],\nfields: [\"a\", \"b\"],\nmethods: [(\"__init__\", \"fn[[v=var6], none]\"), (\"fun\", \"fn[[a=var5], var6]\")],\ntype_vars: [\"var5\", \"var6\"]\n}\n", + "Function {\nname: \"A.__init__\",\nsig: \"fn[[v=var6], none]\",\nvar_id: [6]\n}\n", + "Function {\nname: \"A.fun\",\nsig: \"fn[[a=var5], var6]\",\nvar_id: [6]\n}\n", + "Function {\nname: \"gfun\",\nsig: \"fn[[a=A[5->list[float], 6->int32]], none]\",\nvar_id: []\n}\n", + "Class {\nname: \"B\",\nancestors: [\"{class: B, params: []}\"],\nfields: [],\nmethods: [(\"__init__\", \"fn[[], none]\")],\ntype_vars: []\n}\n", + "Function {\nname: \"B.__init__\",\nsig: \"fn[[], none]\",\nvar_id: []\n}\n", +] diff --git a/nac3core/src/toplevel/snapshots/nac3core__toplevel__test__test_analyze__analyze-4.snap b/nac3core/src/toplevel/snapshots/nac3core__toplevel__test__test_analyze__analyze-4.snap new file mode 100644 index 00000000..97380a44 --- /dev/null +++ b/nac3core/src/toplevel/snapshots/nac3core__toplevel__test__test_analyze__analyze-4.snap @@ -0,0 +1,17 @@ +--- +source: nac3core/src/toplevel/test.rs +assertion_line: 541 +expression: res_vec + +--- +[ + "Class {\nname: \"A\",\nancestors: [\"{class: A, params: [\\\"var5\\\"]}\"],\nfields: [\"a\", \"b\", \"c\"],\nmethods: [(\"__init__\", \"fn[[t=var5], none]\"), (\"fun\", \"fn[[a=int32, b=var5], list[virtual[B[6->bool]]]]\"), (\"foo\", \"fn[[c=C], none]\")],\ntype_vars: [\"var5\"]\n}\n", + "Function {\nname: \"A.__init__\",\nsig: \"fn[[t=var5], none]\",\nvar_id: []\n}\n", + "Function {\nname: \"A.fun\",\nsig: \"fn[[a=int32, b=var5], list[virtual[B[6->bool]]]]\",\nvar_id: []\n}\n", + "Function {\nname: \"A.foo\",\nsig: \"fn[[c=C], none]\",\nvar_id: []\n}\n", + "Class {\nname: \"B\",\nancestors: [\"{class: B, params: [\\\"var6\\\"]}\", \"{class: A, params: [\\\"float\\\"]}\"],\nfields: [\"a\", \"b\", \"c\", \"d\"],\nmethods: [(\"__init__\", \"fn[[], none]\"), (\"fun\", \"fn[[a=int32, b=var5], list[virtual[B[6->bool]]]]\"), (\"foo\", \"fn[[c=C], none]\")],\ntype_vars: [\"var6\"]\n}\n", + "Function {\nname: \"B.__init__\",\nsig: \"fn[[], none]\",\nvar_id: [6]\n}\n", + "Function {\nname: \"B.fun\",\nsig: \"fn[[a=int32, b=var5], list[virtual[B[6->bool]]]]\",\nvar_id: [6]\n}\n", + "Class {\nname: \"C\",\nancestors: [\"{class: C, params: []}\", \"{class: B, params: [\\\"bool\\\"]}\", \"{class: A, params: [\\\"float\\\"]}\"],\nfields: [\"a\", \"b\", \"c\", \"d\", \"e\"],\nmethods: [(\"__init__\", \"fn[[], none]\"), (\"fun\", \"fn[[a=int32, b=var5], list[virtual[B[6->bool]]]]\"), (\"foo\", \"fn[[c=C], none]\")],\ntype_vars: []\n}\n", + "Function {\nname: \"C.__init__\",\nsig: \"fn[[], none]\",\nvar_id: []\n}\n", +] diff --git a/nac3core/src/toplevel/snapshots/nac3core__toplevel__test__test_analyze__analyze-5.snap b/nac3core/src/toplevel/snapshots/nac3core__toplevel__test__test_analyze__analyze-5.snap new file mode 100644 index 00000000..472c4507 --- /dev/null +++ b/nac3core/src/toplevel/snapshots/nac3core__toplevel__test__test_analyze__analyze-5.snap @@ -0,0 +1,15 @@ +--- +source: nac3core/src/toplevel/test.rs +assertion_line: 541 +expression: res_vec + +--- +[ + "Class {\nname: \"A\",\nancestors: [\"{class: A, params: [\\\"var5\\\", \\\"var6\\\"]}\"],\nfields: [\"a\", \"b\"],\nmethods: [(\"__init__\", \"fn[[a=A[5->float, 6->bool], b=B], none]\"), (\"fun\", \"fn[[a=A[5->float, 6->bool]], A[5->bool, 6->int32]]\")],\ntype_vars: [\"var5\", \"var6\"]\n}\n", + "Function {\nname: \"A.__init__\",\nsig: \"fn[[a=A[5->float, 6->bool], b=B], none]\",\nvar_id: [6]\n}\n", + "Function {\nname: \"A.fun\",\nsig: \"fn[[a=A[5->float, 6->bool]], A[5->bool, 6->int32]]\",\nvar_id: [6]\n}\n", + "Class {\nname: \"B\",\nancestors: [\"{class: B, params: []}\", \"{class: A, params: [\\\"int64\\\", \\\"bool\\\"]}\"],\nfields: [\"a\", \"b\"],\nmethods: [(\"__init__\", \"fn[[], none]\"), (\"fun\", \"fn[[a=A[5->float, 6->bool]], A[5->bool, 6->int32]]\"), (\"foo\", \"fn[[b=B], B]\"), (\"bar\", \"fn[[a=A[5->list[B], 6->int32]], tuple[A[5->virtual[A[5->B, 6->int32]], 6->bool], B]]\")],\ntype_vars: []\n}\n", + "Function {\nname: \"B.__init__\",\nsig: \"fn[[], none]\",\nvar_id: []\n}\n", + "Function {\nname: \"B.foo\",\nsig: \"fn[[b=B], B]\",\nvar_id: []\n}\n", + "Function {\nname: \"B.bar\",\nsig: \"fn[[a=A[5->list[B], 6->int32]], tuple[A[5->virtual[A[5->B, 6->int32]], 6->bool], B]]\",\nvar_id: []\n}\n", +] diff --git a/nac3core/src/toplevel/snapshots/nac3core__toplevel__test__test_analyze__analyze-6.snap b/nac3core/src/toplevel/snapshots/nac3core__toplevel__test__test_analyze__analyze-6.snap new file mode 100644 index 00000000..b2bd4647 --- /dev/null +++ b/nac3core/src/toplevel/snapshots/nac3core__toplevel__test__test_analyze__analyze-6.snap @@ -0,0 +1,19 @@ +--- +source: nac3core/src/toplevel/test.rs +assertion_line: 541 +expression: res_vec + +--- +[ + "Class {\nname: \"A\",\nancestors: [\"{class: A, params: []}\"],\nfields: [\"a\"],\nmethods: [(\"__init__\", \"fn[[], none]\"), (\"fun\", \"fn[[b=B], none]\"), (\"foo\", \"fn[[a=var5, b=var6], none]\")],\ntype_vars: []\n}\n", + "Function {\nname: \"A.__init__\",\nsig: \"fn[[], none]\",\nvar_id: []\n}\n", + "Function {\nname: \"A.fun\",\nsig: \"fn[[b=B], none]\",\nvar_id: []\n}\n", + "Function {\nname: \"A.foo\",\nsig: \"fn[[a=var5, b=var6], none]\",\nvar_id: [6]\n}\n", + "Class {\nname: \"B\",\nancestors: [\"{class: B, params: []}\", \"{class: C, params: []}\", \"{class: A, params: []}\"],\nfields: [\"a\"],\nmethods: [(\"__init__\", \"fn[[], none]\"), (\"fun\", \"fn[[b=B], none]\"), (\"foo\", \"fn[[a=var5, b=var6], none]\")],\ntype_vars: []\n}\n", + "Function {\nname: \"B.__init__\",\nsig: \"fn[[], none]\",\nvar_id: []\n}\n", + "Class {\nname: \"C\",\nancestors: [\"{class: C, params: []}\", \"{class: A, params: []}\"],\nfields: [\"a\"],\nmethods: [(\"__init__\", \"fn[[], none]\"), (\"fun\", \"fn[[b=B], none]\"), (\"foo\", \"fn[[a=var5, b=var6], none]\")],\ntype_vars: []\n}\n", + "Function {\nname: \"C.__init__\",\nsig: \"fn[[], none]\",\nvar_id: []\n}\n", + "Function {\nname: \"C.fun\",\nsig: \"fn[[b=B], none]\",\nvar_id: []\n}\n", + "Function {\nname: \"foo\",\nsig: \"fn[[a=A], none]\",\nvar_id: []\n}\n", + "Function {\nname: \"ff\",\nsig: \"fn[[a=var5], var6]\",\nvar_id: [6]\n}\n", +] diff --git a/nac3core/src/toplevel/snapshots/nac3core__toplevel__test__test_analyze__analyze.snap b/nac3core/src/toplevel/snapshots/nac3core__toplevel__test__test_analyze__analyze.snap new file mode 100644 index 00000000..d4e96445 --- /dev/null +++ b/nac3core/src/toplevel/snapshots/nac3core__toplevel__test__test_analyze__analyze.snap @@ -0,0 +1,9 @@ +--- +source: nac3core/src/toplevel/test.rs +assertion_line: 541 +expression: res_vec + +--- +[ + "Class {\nname: \"A\",\nancestors: [\"{class: A, params: []}\"],\nfields: [],\nmethods: [],\ntype_vars: []\n}\n", +]