Fantom

 

class

compiler::PodFacetsParser

sys::Obj
  compiler::PodFacetsParser

PodFacetsParser is a light weight parser used to parse the facets of a pod definition before a the full compilation.

Slots

getSource

Obj? get(Str qname, Bool checked := true, Type expected := Obj?#)

Get a pod facet with its qualified name. If it doesn't exist then throw CompilerErr or return null depending on checked parameter. If expected is passed and resulting value does not fit type then throw CompilerErr. NOTE: currently we don't do any namespace resolution

keysSource

Str[] keys()

List the keys we parsed. NOTE: currently we don't do any namespace resolution

locSource

Loc loc

mainSource

static Void main(Str[] args)

makeSource

new make(Loc loc, Str source)

Construct with location and source.

parseSource

This parse()

Parse the facets, if there is a tokenize error then throw CompilerErr. Return this.

podNameSource

readonly Str podName := "?"

Pod name