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

Methods

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
runAsync(Ruleset root) → Future<Null>
Replaces @import nodes with the file content
tryRun() → Future<Null>
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
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
run(Ruleset root) Ruleset
inherited
toString() → String
Returns a string representation of this object.
inherited
visit(dynamic node) → dynamic
@virtual, inherited
visitArray<T>(List<T> nodes, { bool nonReplacing: false }) → List<T>
inherited

Operators

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