Class StreamScope

The default scope implementation is based on a Stream. It has an optional outer scope describing the next level of elements, which are queried when a target element is not found in the stream provided to this scope.

Implements

Constructors

Properties

caseInsensitive: boolean
outerScope?: Scope

Methods

  • Find a target element matching the given name. If no element is found, undefined is returned. If multiple matching elements are present, the selection of the returned element should be done according to the semantics of your language. Usually it is the element that is most closely defined.

    Parameters

    • name: string

      Name of the cross-reference target as it appears in the source text.

    Returns undefined | AstNodeDescription