C# Class StarkPlatform.Compiler.Formatting.ContextIntervalTree

a tweaked version of our interval tree to meet the formatting engine's need it now has an ability to return a smallest span that contains a position rather than all Intersecting or overlapping spans
Inheritance: SimpleIntervalTree
Afficher le fichier Open project: stark-lang/stark Class Usage Examples

Méthodes publiques

Méthode Description
ContextIntervalTree ( IIntervalIntrospector introspector ) : System
GetSmallestContainingInterval ( int start, int length ) : T
GetSmallestEdgeExclusivelyContainingInterval ( int start, int length ) : T
GetSmallestEdgeInclusivelyContainingInterval ( int start, int length ) : T
ToString ( ) : string

Private Methods

Méthode Description
ContainsEdgeExclusive ( value, int start, int length ) : bool
ContainsEdgeInclusive ( value, int start, int length ) : bool
GetSmallestContainingIntervalWorker ( int start, int length, Func predicate ) : T

Method Details

ContextIntervalTree() public méthode

public ContextIntervalTree ( IIntervalIntrospector introspector ) : System
introspector IIntervalIntrospector
Résultat System

GetSmallestContainingInterval() public méthode

public GetSmallestContainingInterval ( int start, int length ) : T
start int
length int
Résultat T

GetSmallestEdgeExclusivelyContainingInterval() public méthode

public GetSmallestEdgeExclusivelyContainingInterval ( int start, int length ) : T
start int
length int
Résultat T

GetSmallestEdgeInclusivelyContainingInterval() public méthode

public GetSmallestEdgeInclusivelyContainingInterval ( int start, int length ) : T
start int
length int
Résultat T

ToString() public méthode

public ToString ( ) : string
Résultat string