SStaticFacts class

A bundle's facts table. See the library comment.

Constructors

SStaticFacts({required SFactsStamp stamp, List<SFactType> types = const [], Map<String, Map<String, SStaticFact>> modules = const {}})
const

Properties

factCount → int
How many facts the table holds.
no setter
hashCode → int
The hash code for this object.
no setterinherited
modules → Map<String, Map<String, SStaticFact>>
Module URI -> offset:length of the node -> its fact.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stamp → SFactsStamp
What the facts were computed against.
final
types → List<SFactType>
The interned types; facts refer to them by index.
final

Methods

factAt(String moduleUri, int offset, int length) → SStaticFact?
The fact recorded for the node at offset / length of moduleUri, or null.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited
type(int index) → SFactType
The type index refers to.

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

fromJson(Map<String, dynamic> json) → SStaticFacts?
Reads a table written by toJson. A table of another format reads as null: facts are optional, and one this reader may misread is not used.
key(int offset, int length) → String
The key of a node at offset with length in modules.

Constants

format → const int
The table's own format: the reader reads only this one and ignores a table of another (a bundle then runs as without facts). Bumped only for a change a reader of the old one would misread.