MixinDefinition class
- Inheritance
- Object
- Node
- MixinDefinition
- Implemented types
- Mixed in types
Constructors
-
MixinDefinition(String name, List<
MixinArgs> params, List<Node> rules, Node condition, {bool variadic, int index, FileInfo currentFileInfo, List<Node> frames, VisibilityInfo visibilityInfo})
Properties
-
allExtends
↔ List<
Extend> -
For extends visitor process
read / write, inherited
- allowRoot ↔ bool
-
The Node type could be used in the root ruleset
read / write, inherited
- arity ↔ int
-
Number of params
read / write
- cleanCss ↔ CleanCssContext
-
Info to optimize the node with cleanCss
read / write, inherited
- condition ↔ Node
-
when (condition) {}
read / write
- currentFileInfo ↔ FileInfo
-
get fileInfo from this node or their parent
read / write, inherited
- debugInfo ↔ DebugInfo
-
Filename and line coordinates for error debug
read / write, inherited
-
elements
↔ List<
Element> -
Selector elements
read / write, inherited
- evalFirst ↔ bool
-
DetachedRuleset and MixinDefinition must be evaluated before other nodes
in the Ruleset.eval() funciton
read / write, inherited
- evaluated ↔ bool
-
result from bool eval, used in condition
read / write, inherited
-
frames
↔ List<
Node> -
read / write
- functionRegistry ↔ FunctionRegistry
-
read / write, inherited
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- id ↔ int
-
hashCode own or inherited for object comparation
read / write, inherited
- index ↔ int
-
index from this node or their parent, position in the less file
read / write, inherited
- isRuleset ↔ bool
-
True if is a Ruleset or MixinDefinition
read / write, inherited
- name ↔ String
-
Node name
read / write, override-getter
- nodeVisible ↔ bool
-
Only output css code for nodeVisible = true
read / write, inherited
-
operands
↔ List<
Node> -
For operation node
read / write, inherited
-
optionalParameters
↔ List<
String> -
Arguments number optional
read / write
- originalRuleset ↔ Node
-
for Rulesets and mixins process
read / write, inherited
-
params
↔ List<
MixinArgs> -
Mixin params
read / write
- paren ↔ Node
-
read / write, inherited
- parens ↔ bool
-
The node has been parsed inside parenthesis
()
read / write, inherited - parensInOp ↔ bool
-
for expression evaluation
read / write, inherited
- parent ↔ Node
-
parent Node, used by index and fileInfo.
read / write, inherited
- parsed ↔ bool
-
Some anonymous nodes are lazy parsed
read / write, inherited
- required ↔ int
-
Arguments number required
read / write
- rootNode ↔ bool
-
read / write, inherited
-
rules
↔ List<
Node> -
Mixin body
read / write, override
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
-
selectors
↔ List<
Selector> -
The ruleset selectors
read / write, inherited
-
treeField
→ Map<
String, dynamic> -
Fields to show with genTree
read-only, override
- type → String
-
Node generic name == class name
final
- value ↔ dynamic
-
the node value
read / write, inherited
- variadic ↔ bool
-
Arguments number is variable
read / write
- visibilityBlocks ↔ int
-
Node visibility control
read / write, inherited
Methods
-
accept(
covariant VisitorBase visitor) → void -
override
-
addVisibilityBlock(
) → void -
inherited
-
blocksVisibility(
) → bool -
Returns true if this node represents root of was imported by reference
inherited
-
copyVisibilityInfo(
VisibilityInfo info) → void -
This node get the visibility from
info
inherited -
ensureInvisibility(
) → void -
Turns off node visibility - if called node will NOT be shown in output regardless
of whether it comes from import by reference or not
inherited
-
ensureVisibility(
) → void -
Turns on node visibility, that is, if called node will be shown in output
regardless of whether it comes from import by reference or not
inherited
-
eval(
Contexts context) → MixinDefinition -
override
-
evalCall(
Contexts context, List< MixinArgs> args, {bool important}) → Ruleset -
evalParams(
Contexts context, Contexts mixinEnv, List< MixinArgs> args, List<Node> evaldArguments) → Ruleset - / find: function () { return this.parent.find.apply(this, arguments); }, / rulesets: function () { return this.parent.rulesets.apply(this); }, [...]
-
fileInfo(
) → FileInfo -
returns fileInfo from this node or their parent
inherited
-
find(
Selector selector, [VariableMixin self, Function filter]) → List< MixinFound> -
Returns the List of Rules that matchs
selector
. The results are cached. [...]inherited -
fround(
Contexts context, num value, [int precision]) → num -
Adjust the precision of
value
according tocontext
.numPrecision. 8 By default. [...]inherited -
genCSS(
Contexts context, Output output) → void -
Writes in
output
the node transformed to CSS.inherited -
genTree(
Contexts env, Output output, [String prefix = '']) → void -
Writes in
output
the tree, for debuginherited -
genTreeField(
Contexts env, Output output, String fieldName, dynamic fieldValue) → void -
Build the subtree for a
fieldName
,fieldValue
inherited -
genTreeTitle(
Contexts env, Output output, String prefix, String type, String value) → void -
Build the node tree title
inherited
-
getIndex(
) → int -
returns index from this node or their parent
inherited
-
isCharset(
) → bool -
Directive overrides it
inherited
-
isRulesetLike(
) → bool -
inherited
-
isVisible(
) → bool -
return values:
false - the node must not be visible
true - the node must be visible
null - the node has the same visibility as its parent
inherited
-
lastDeclaration(
) → Node -
Returns the last Declaration node in rules
example:
bar: @return[]; where '[]' is the last declaration
inherited
-
makeImportant(
) → MixinDefinition -
override
-
matchArgs(
List< MixinArgs> args, Contexts context) → bool -
Check arguments call is according mixin definition
override
-
matchCondition(
List< MixinArgs> args, Contexts context) → bool -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
parseForCompression(
) → void -
Parse all Declaration nodes (used for compression)
inherited
-
parseValue<
T> (T toParse) → T -
toParse = Declaration | Listinherited
-
properties(
) → Map< String, List< Declaration> > -
inherited
-
property(
String name) → List< Declaration> -
inherited
-
removeVisibilityBlock(
) → void -
inherited
-
resetCache(
) → void -
inherited
-
rulesets(
) → List< Node> -
Returns a List of MixinDefinition or Ruleset contained in this.rules
inherited
-
setParent(
dynamic nodes, Node parent) → void -
Update
parent
property innodes
. [...]inherited -
throwAwayComments(
) → void -
inherited
-
toCSS(
Contexts context) → String -
Returns node transformed to css code
inherited
-
toString(
) → String -
Returns a string representation of this object.
override
-
toTree(
LessOptions options) → StringBuffer -
debug print the node tree
inherited
-
transformDeclaration(
Declaration decl) → Declaration -
Parse declaration.value [...]
inherited
-
variable(
String name) → Node -
Returns the Variable Node (@variable = value).
inherited
-
variables(
) → Map< String, Node> -
Returns the variables list if exist, else creates it.
inherited
-
visibilityInfo(
) → VisibilityInfo -
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator. [...]
inherited