Skip to content

Commit

Permalink
Added snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
mine-tech-oficial committed Oct 4, 2024
1 parent ec242a6 commit dd870ca
Show file tree
Hide file tree
Showing 27 changed files with 178 additions and 164 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,18 @@ expression: "\npub type Wob(a) { Wob }\n@deprecated(\"deprecation message\")\npu
},
"parameters": [],
"return": {
"kind": "named",
"name": "Wob",
"package": "my_package",
"module": "my/module",
"parameters": [
{
"kind": "variable",
"id": 0
}
]
"named": {
"name": "Wob",
"package": "my_package",
"module": "my/module",
"parameters": [
{
"variable": {
"id": 0
}
}
]
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,24 +25,27 @@ expression: "\nimport other_module.{type Element as Alias} as module_alias\npub
},
"parameters": [],
"return": {
"kind": "named",
"name": "Element",
"package": "other_package",
"module": "other_module",
"parameters": [
{
"kind": "named",
"name": "Element",
"package": "other_package",
"module": "other_module",
"parameters": [
{
"kind": "variable",
"id": 0
"named": {
"name": "Element",
"package": "other_package",
"module": "other_module",
"parameters": [
{
"named": {
"name": "Element",
"package": "other_package",
"module": "other_module",
"parameters": [
{
"variable": {
"id": 0
}
}
]
}
]
}
]
}
]
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,21 @@ expression: "\nimport other_module.{type Element}\npub fn main() -> Element(Int)
},
"parameters": [],
"return": {
"kind": "named",
"name": "Element",
"package": "other_package",
"module": "other_module",
"parameters": [
{
"kind": "named",
"name": "Int",
"package": "",
"module": "gleam",
"parameters": []
}
]
"named": {
"name": "Element",
"package": "other_package",
"module": "other_module",
"parameters": [
{
"named": {
"name": "Int",
"package": "",
"module": "gleam",
"parameters": []
}
}
]
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,52 +34,60 @@ expression: "\npub type Box(a, b)\npub fn some_type_variables(a: a, b: b, c: Box
{
"label": null,
"type": {
"kind": "variable",
"id": 0
"variable": {
"id": 0
}
}
},
{
"label": null,
"type": {
"kind": "variable",
"id": 1
"variable": {
"id": 1
}
}
},
{
"label": null,
"type": {
"kind": "named",
"name": "Box",
"package": "my_package",
"module": "my/module",
"parameters": [
{
"kind": "variable",
"id": 2
},
{
"kind": "variable",
"id": 3
}
]
"named": {
"name": "Box",
"package": "my_package",
"module": "my/module",
"parameters": [
{
"variable": {
"id": 2
}
},
{
"variable": {
"id": 3
}
}
]
}
}
}
],
"return": {
"kind": "named",
"name": "Box",
"package": "my_package",
"module": "my/module",
"parameters": [
{
"kind": "variable",
"id": 0
},
{
"kind": "variable",
"id": 3
}
]
"named": {
"name": "Box",
"package": "my_package",
"module": "my/module",
"parameters": [
{
"variable": {
"id": 0
}
},
{
"variable": {
"id": 3
}
}
]
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,12 @@ expression: "\n//// Some package\n//// documentation!\n\npub fn main() { 1 }\n"
},
"parameters": [],
"return": {
"kind": "named",
"name": "Int",
"package": "",
"module": "gleam",
"parameters": []
"named": {
"name": "Int",
"package": "",
"module": "gleam",
"parameters": []
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,12 @@ expression: "\npub const float = 1.1\npub const string = \"\"\npub const int = 1
"can-run-on-javascript": true
},
"type": {
"kind": "named",
"name": "Bool",
"package": "",
"module": "gleam",
"parameters": []
"named": {
"name": "Bool",
"package": "",
"module": "gleam",
"parameters": []
}
}
},
"float": {
Expand All @@ -41,11 +42,12 @@ expression: "\npub const float = 1.1\npub const string = \"\"\npub const int = 1
"can-run-on-javascript": true
},
"type": {
"kind": "named",
"name": "Float",
"package": "",
"module": "gleam",
"parameters": []
"named": {
"name": "Float",
"package": "",
"module": "gleam",
"parameters": []
}
}
},
"int": {
Expand All @@ -59,11 +61,12 @@ expression: "\npub const float = 1.1\npub const string = \"\"\npub const int = 1
"can-run-on-javascript": true
},
"type": {
"kind": "named",
"name": "Int",
"package": "",
"module": "gleam",
"parameters": []
"named": {
"name": "Int",
"package": "",
"module": "gleam",
"parameters": []
}
}
},
"string": {
Expand All @@ -77,11 +80,12 @@ expression: "\npub const float = 1.1\npub const string = \"\"\npub const int = 1
"can-run-on-javascript": true
},
"type": {
"kind": "named",
"name": "String",
"package": "",
"module": "gleam",
"parameters": []
"named": {
"name": "String",
"package": "",
"module": "gleam",
"parameters": []
}
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,18 @@ expression: pub type Wibble(a) = List(a)
"deprecation": null,
"parameters": 1,
"alias": {
"kind": "named",
"name": "List",
"package": "",
"module": "gleam",
"parameters": [
{
"kind": "variable",
"id": 0
}
]
"named": {
"name": "List",
"package": "",
"module": "gleam",
"parameters": [
{
"variable": {
"id": 0
}
}
]
}
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,20 @@ expression: "\npub type Box(a, b) {\n Box(b, Int)\n OtherBox(message: String,
{
"label": null,
"type": {
"kind": "variable",
"id": 1
"variable": {
"id": 1
}
}
},
{
"label": null,
"type": {
"kind": "named",
"name": "Int",
"package": "",
"module": "gleam",
"parameters": []
"named": {
"name": "Int",
"package": "",
"module": "gleam",
"parameters": []
}
}
}
]
Expand All @@ -46,18 +48,20 @@ expression: "\npub type Box(a, b) {\n Box(b, Int)\n OtherBox(message: String,
{
"label": "message",
"type": {
"kind": "named",
"name": "String",
"package": "",
"module": "gleam",
"parameters": []
"named": {
"name": "String",
"package": "",
"module": "gleam",
"parameters": []
}
}
},
{
"label": "a",
"type": {
"kind": "variable",
"id": 0
"variable": {
"id": 0
}
}
}
]
Expand Down
Loading

0 comments on commit dd870ca

Please sign in to comment.