class

Noir::PythonGraphqlExtractor::Index

Inherits Reference < Object

Every outline, indexed for resolve.

Constructors

Instance methods

classes
Source
functions
Source
library?(klass : ClassDecl) : Bool
Source
lineage(klass : ClassDecl, seen = Set(::Tuple(String, Int32)).new) : Array(ClassDecl)

klass and every base that resolves, bases first, each once.

Source
members(klass : ClassDecl) : Array(Member)

Members of klass and its bases, a subclass's shadowing its base's.

Source
mount_path(group : Array(FileOutline) = @outlines) : String | Nil

The one mount path every file of group (one app) agrees on, else nil.

Source
outline(path : String) : FileOutline
Source
outlines
Source
resolve_class(from_path : String, ref : String, except : ClassDecl | Nil = nil) : ClassDecl | Nil
Source
resolve_function(from_path : String, ref : String) : Member | Nil
Source
roots(group : Array(FileOutline) = @outlines, & : ClassDecl -> Bool) : Array(Tuple(String, ClassDecl, Bool))

Root kind, class and camelCase flag of every Schema(query=..., mutation=..., subscription=...) binding. With none resolved, the classes named Query / Mutation / Subscription that accept takes. Both are looked for in group (one app) only; references still resolve across every outline.

Source