roc/compiler/parse/tests/snapshots/pass/full_app_header.header.result-ast
Joshua Warner 8b58d5cbc7 Switch to always encoding package names / paths as strings
This will simplify parsing and make it possible to have a uniform lexer for the language. Previously unquoted package names were allowed to include '-'s, which aren't valid identifiers.

In the future, we'll distinguish local paths from packages in the package-manager by looking for a ".roc" suffix, which should only be present in local paths.
2021-12-23 20:11:14 -08:00

49 lines
1.1 KiB
Text

App {
header: AppHeader {
name: |L 0-0, C 4-15| PlainLine(
"quicksort",
),
packages: [
|L 1-1, C 15-31| PackageEntry {
shorthand: "pf",
spaces_after_shorthand: [],
package_name: |L 1-1, C 19-31| PackageName(
"./platform",
),
},
],
imports: [
|L 2-2, C 14-25| Package(
"foo",
ModuleName(
"Bar.Baz",
),
[],
),
],
provides: [
|L 3-3, C 15-24| ExposedName(
"quicksort",
),
],
to: |L 3-3, C 30-32| ExistingPackage(
"pf",
),
before_header: [],
after_app_keyword: [],
before_packages: [
Newline,
],
after_packages: [],
before_imports: [
Newline,
],
after_imports: [],
before_provides: [
Newline,
],
after_provides: [],
before_to: [],
after_to: [],
},
}