roc/test/snapshots/app_header__nonempty_multiline__commented.md
2025-10-16 07:00:23 -07:00

1.1 KiB

META

description=App Header - nonempty multiline - heavily commented
type=header

SOURCE

app # Comment after keyword
	[ # Comment after provides open
		main!, # Comment after exposed item
	]
	{ # Comment after packages open
		pf: platform "../main.roc", # Comment after platform
		other: "../../other/main.roc", # Comment after last package
	}

EXPECTED

NIL

PROBLEMS

NIL

TOKENS

KwApp,
OpenSquare,
LowerIdent,Comma,
CloseSquare,
OpenCurly,
LowerIdent,OpColon,KwPlatform,StringStart,StringPart,StringEnd,Comma,
LowerIdent,OpColon,StringStart,StringPart,StringEnd,Comma,
CloseCurly,
EndOfFile,

PARSE

(app
	(provides
		(exposed-lower-ident
			(text "main!")))
	(record-field (name "pf")
		(e-string
			(e-string-part (raw "../main.roc"))))
	(packages
		(record-field (name "pf")
			(e-string
				(e-string-part (raw "../main.roc"))))
		(record-field (name "other")
			(e-string
				(e-string-part (raw "../../other/main.roc"))))))

FORMATTED

NO CHANGE

CANONICALIZE

(can-ir (empty true))

TYPES

(inferred-types
	(defs)
	(expressions))