less_builder library

Classes

AbstractFileManager
Anonymous
Apply
@apply(--mixin-name); directive
AssetId
Identifies an asset within a package.
AssetReader
Standard interface for reading an asset within in a package. [...]
AssetWriter
Standard interface for writing an asset into a package's outputs.
AssetWriterSpy
An AssetWriter which tracks all assetsWritten during its lifetime.
Assignment
Assignments are argument entities for calls. They are present in ie filter properties as shown below. [...]
AtRule
Directive such as [...]
Attribute
Base64String
BaseBuilder
BiMap<K, V>
BmpImage
BooleanFunctions
Builder
The basic builder class, used to build new files from existing ones.
BuilderOptions
BuildStep
A single step in a build process. [...]
Call
A function call node.
Candidate
Charcode
Special character definition
Chunker
Split the input to easy the parser process. In this version is not used.
Color
RGB Colors: #rgb #rgba #rrggbb #rrggbbaa
ColorBlend
ColorFunctions
Combinator
Comment
CommentPointer
Data about the Comment found
CompareNode
Condition
ContentElement
Base class for LessElement and StyleElement
Contexts
CSSVisitorUtils
DataUriFunctions
DebugInfo
Debug coordinates Example: new LessDebugIngo({lineNumber: 30, fileName: 'file.less'});
Declaration
a css rule/declaration 'name: value;' such as: [...]
DefaultFunc
DefineMethod
Annotation class for exceptions to method definition
DetachedRuleset
Dimension
A number with a unit
DirectiveBase
Base class for AtRule/Directive and Media
DotHtmlBuilder
Process .less.html files
DotLessBuilder
Process .less files
Element
A Selector Element [...]
Entities
Entities are tokens which can be found inside an Expression
EntryPoints
Manager to know which files to process [...]
Environment
Expression
Extend
ExtendFinderVisitor
FileDeletingBuilder
A PostProcessBuilder which can be configured to consume any input extensions and always deletes it primary input.
FileFileManager
File loader
FileInfo
File Information
FileLoaded
return type for loadFile
FragmentElement
Html content between less tags
FunctionBase
Implements the way to call a method by string
FunctionCaller
FunctionRegistry
Manages the custom functions defined by plugins
FunctionRegistryItem
Item defining a method in the function registry
GenId
Less Id for runZoned
GifImage
HSLType
HSVType
IgnitionVisitor
Visitor to run after parse input file, before imports
ImageDimension
ImageSize
Calculate the size (width * height) from a file image
ImageSizeFunctions
Import
ImportantRule
ImportDetector
Map<String, bool> used for recursionDetector and onceFileDetectionMap
ImportOptions
Manages the options in: @import (options) "..."; Example: options = new ImportOptions(); options'less' = true; options.less = true;
ImportVisitor
JavaScript
JoinSelectorVisitor
JpgImage
JsEvalNodeMixin
Keyword
Less
LessBuilder
build.yaml example file in project: [...]
LessBuilderOptions
Repository for builder options
LessElement
<less...>...
LessOptions
ListFunctions
MakeImportantNode
MatchConditionNode
MatchSelector
MathFunctions
MathHelper
Media
MergeRulesMixin
Implements the mergeRules method used to group rules in the same declaration
Mixin
Process Mixins
MixinArgs
MixinCall
MixinDefinition
MixinFound
MixinReturner
Arguments definition for a mixin
MoreList
List functions
MoreRegExp
MultiPackageAssetReader
The same as an AssetReader, except that findAssets takes an optional argument package which allows you to glob any package. [...]
MultiplexingBuilder
A Builder that runs multiple delegate builders asynchronously. [...]
NamespaceValue
Negative
Node
Base class for all tree nodes
Nodeset
When a method returns List instead Node as required by the interface, Nodeset let encapsulate the List and return Node, as Nodeset.rules
NumberFunctions
OperateNode<T>
Operation
Options
@options "--flags" directive @plugin (args) "plugin-name"
OutputRulesetMixin
PackageResolver
A class that defines how to resolve package: URIs. [...]
PackageResolverProvider
Package Resolver provider
Paren
ParseNode
Used after initial parsing to create nodes on the fly
Parser
A relatively straight-forward predictive parser. There is no tokenization/lexing stage, the input is parsed in one sweep. [...]
ParserInput
Input Management
Parsers
Here in, the parsing rules/functions [...]
ParserStatus
What happend in the parser?
ParseTree
ParseUntilReturnItem
Each item returned by $parseUntil
Plugin
Base clase for Plugin definition
PluginLoader
PluginManager
PluginOptions
Base class for cmd options
PngImage
PostProcessBuilder
A builder which runes in a special phase at the end of the build. [...]
PostProcessBuildStep
A simplified BuildStep which can only read its primary input, and can't get a Resolver or any Resources, at least for now.
ProcessExtendsVisitor
Processor
Base class for plugin PreProcessors and PostProcessors
ProcessorItem
Property
PsdImage
Quoted
A string, which supports escaping ~, " and ' [...]
ReleasableResolver
A resolver that should be manually released at the end of a build step.
RenderResult
Result type for ParseTree
Resolver
Standard interface for resolving Dart source code as part of a build.
Resolvers
A factory that returns a resolver for a given BuildStep.
Resource<T>
A Resource encapsulates the logic for creating and disposing of some expensive object which has a lifecycle. [...]
ResourceManager
Manages fetching and disposing of a group of Resources. [...]
Ruleset
Selector
Selectors such as body, h1, ...
SetTreeVisibilityVisitor
SilentNode
SourceMapOptions
StageTracker
StringFunctions
StyleElement
SvgFunctions
SvgImage
SyncPackageResolver
A class that defines how to resolve package: URIs. [...]
TestChar
Test character against a String or RegExp bool new TestChar(string, regExp).test(character)
ToCSSVisitor
TransformTree
TreeApi
TypesFunctions
UnicodeDescriptor
Unit
URL
UrlFileManager
URL loader
UrlParts
Value
  • Variable
    VariableCall
    VariableDefinition
    GlobalVariables & ModifyVariables item definition
    VariableImport
    Contents the importNode with variables in the name, for delayed processing [...]
    VariableMixin
  • VisibilityInfo
    VisitArgs
    Visitor
    VisitorBase
    WebpImage

    Constants

    defineMethodListArguments → const DefineMethod
    const DefineMethod(listArguments: true)
    defineMethodSkip → const DefineMethod
    const DefineMethod(skip: true)
    DOT_HTML_TO → const String
    Extension for .html files
    '.html'
    DOT_LESS_TO → const String
    Extension for .less files
    '.css'

    Properties

    debugCounter ↔ int
    read / write
    log Logger
    The log instance for the currently running BuildStep. [...]
    read-only

    Functions

    expectedOutputs(Builder builder, AssetId input) → Iterable<AssetId>
    Collects the expected AssetIds created by builder when given input based on the extension configuration.
    isNotEmpty(dynamic value) → bool
    Resolves null as empty. Return false if null. Supports String, List, Map.
    isType(dynamic value, String type, { bool isList: false, bool isListList: false }) → bool
    check type Example: isType(ctxSelectors, 'Selector', isListList: true);
    lessBuilder(BuilderOptions builderOptions) Builder
    lessSourceCleanup(BuilderOptions options) PostProcessBuilder
    Remove input files
    negate<T extends num>(T value) → T
    -value int | double. Considers null value.
    numToString(num n) → String
    Convert n to String, without decimal .0 if possible if n == 0.1 returns '0.1' if n == 0.0 returns '0'
    runBuilder(Builder builder, Iterable<AssetId> inputs, AssetReader reader, AssetWriter writer, Resolvers resolvers, { Logger logger, ResourceManager resourceManager, String rootPackage, StageTracker stageTracker: NoOpStageTracker.instance }) → Future<Null>
    Run builder with each asset in inputs as the primary input. [...]
    runPostProcessBuilder(PostProcessBuilder builder, AssetId inputId, AssetReader reader, AssetWriter writer, Logger logger, { void addAsset(AssetId), void deleteAsset(AssetId) }) → Future<Null>
    Run builder with inputId as the primary input. [...]

    Typedefs

    BeforeExit() → FutureOr
    BuilderFactory(BuilderOptions options) Builder
    Creates a Builder honoring the configuation in options.
    CreateInstance<T>() → FutureOr<T>
    DisposeInstance<T>(T instance) → FutureOr
    PostProcessBuilderFactory(BuilderOptions) PostProcessBuilder

    Exceptions / Errors

    AssetNotFoundException
    BuildStepCompletedException
    InvalidInputException
    InvalidOutputException
    NonLibraryAssetException
    Thrown when attempting to read a non-Dart library in a Resolver.
    PackageNotFoundException
    ParserInputException
    Handling unexpected characters
    UnexpectedOutputException
    UnresolvableAssetException