ImportVisitor class

Inheritance

Constructors

ImportVisitor(ImportManager importer, [Contexts context, ImportDetector onceFileDetectionMap, ImportDetector recursionDetector])
Structure to search for @import in the tree.

Properties

context Contexts
read / write
hashCode → int
The hash code for this object. [...]
read-only, inherited
importer ↔ ImportManager
read / write
isPreEvalVisitor ↔ bool
read / write, inherited
isPreVisitor ↔ bool
read / write, inherited
isReplacing ↔ bool
read / write, inherited
lessError ↔ LessError
read / write
onceFileDetectionMap ImportDetector
read / write
recursionDetector ImportDetector
read / write
runners ↔ List<Future<Null>>
visitImport futures for await their completion
read / write
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited
variableImports ↔ List<VariableImport>
read / write

Methods

error({int index, String type, String message, String filename}) → void
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
onImported(Import importNode, Contexts context, dynamic root, String fullPath, {bool importedAtRoot}) → Future<Null>
Recursively analyze the imported root for more imports root is String or Ruleset
processImportNode(Import importNode, Contexts context, Node importParent) → void
run(Ruleset root) Ruleset
inherited
runAsync(Ruleset root) → Future<Null>
Replaces @import nodes with the file content
toString() → String
Returns a string representation of this object.
inherited
tryRun() → Future<Null>
visit(dynamic node) → dynamic
inherited
visitArray<T>(List<T> nodes, {bool nonReplacing = false}) → List<T>
inherited
visitAtRule(AtRule atRuleNode, VisitArgs visitArgs) → void
visitAtRuleOut(AtRule atRuleNode) → void
visitDeclaration(Declaration declNode, VisitArgs visitArgs) → void
visitDeclarationOut(Declaration declNode) → void
visitFtn(Node node) → Function
func visitor.visit distribuitor
override
visitFtnOut(Node node) → Function
funcOut visitor.visit distribuitor
override
visitImport(Import importNode, VisitArgs visitArgs) → void
/2.3.1 / _onSequencerEmpty: function() { / if (!this.isFinished) { / return; / } / this._finish(this.error); / }, [...]
visitMedia(Media mediaNode, VisitArgs visitArgs) → void
visitMediaOut(Media mediaNode) → void
visitMixinDefinition(MixinDefinition mixinDefinitionNode, VisitArgs visitArgs) → void
visitMixinDefinitionOut(MixinDefinition mixinDefinitionNode) → void
visitRuleset(Ruleset rulesetNode, VisitArgs visitArgs) → void
visitRulesetOut(Ruleset rulesetNode) → void

Operators

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