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

706 B

META

description=Field access expression simple expression
type=expr

SOURCE

person.name

EXPECTED

UNDEFINED VARIABLE - field_access.md:1:1:1:7

PROBLEMS

UNDEFINED VARIABLE Nothing is named person in this scope. Is there an import or exposing missing up-top?

field_access.md:1:1:1:7:

person.name

^^^^^^

TOKENS

LowerIdent,NoSpaceDotLowerIdent,
EndOfFile,

PARSE

(e-field-access
	(e-ident (raw "person"))
	(e-ident (raw "name")))

FORMATTED

NO CHANGE

CANONICALIZE

(e-dot-access (field "name")
	(receiver
		(e-runtime-error (tag "ident_not_in_scope"))))

TYPES

(expr (type "_a"))