[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

/wp-includes/js/codemirror/ -> csslint.js (summary)

(no description)

File Size: 10859 lines (367 kb)
Included or required:0 times
Referenced: 1 time
Includes or requires: 0 files

Defines 56 functions

  Combinator()
  Matcher()
  MediaFeature()
  MediaQuery()
  Parser()
  PropertyName()
  PropertyValue()
  PropertyValueIterator()
  PropertyValuePart()
  Selector()
  SelectorPart()
  SelectorSubPart()
  Specificity()
  updateValues()
  isHexDigit()
  isDigit()
  isWhitespace()
  isNewLine()
  isNameStart()
  isNameChar()
  isIdentStart()
  mix()
  TokenStream()
  ValidationError()
  copy()
  EventTarget()
  StringReader()
  SyntaxError()
  SyntaxUnit()
  TokenStreamBase()
  clone()
  _clone()
  __objToStr()
  __isDate()
  __isArray()
  __isRegExp()
  __getRegExpFlags()
  applyEmbeddedRuleset()
  Reporter()
  startRule()
  endRule()
  reportProperty()
  startRule()
  endRule()
  startRule()
  startRule()
  startPage()
  startRule()
  endRule()
  startRule()
  startRule()
  endRule()
  startRule()
  endRule()
  startRule()
  endRule()

Functions
Functions that are not part of a class:

Combinator(text, line, col)   X-Ref
Represents a selector combinator (whitespace, +, >).

param: {String} text The text representation of the unit.
param: {int} line The line of text on which the unit resides.
param: {int} col The column of text on which the unit resides.

Matcher(matchFunc, toString)   X-Ref
This class implements a combinator library for matcher functions.
The combinators are described at:
https://developer.mozilla.org/en-US/docs/Web/CSS/Value_definition_syntax#Component_value_combinators


MediaFeature(name, value)   X-Ref
Represents a media feature, such as max-width:500.

param: {SyntaxUnit} name The name of the feature.
param: {SyntaxUnit} value The value of the feature or null if none.

MediaQuery(modifier, mediaType, features, line, col)   X-Ref
Represents an individual media query.

param: {String} modifier The modifier "not" or "only" (or null).
param: {String} mediaType The type of media (i.e., "print").
param: {Array} parts Array of selectors parts making up this selector.
param: {int} line The line of text on which the unit resides.
param: {int} col The column of text on which the unit resides.

Parser(options)   X-Ref
A CSS3 parser.

param: {Object} options (Optional) Various options for the parser:

PropertyName(text, hack, line, col)   X-Ref
No description

PropertyValue(parts, line, col)   X-Ref
Represents a single part of a CSS property value, meaning that it represents
just everything single part between ":" and ";". If there are multiple values
separated by commas, this type represents just one of the values.

param: {String[]} parts An array of value parts making up this value.
param: {int} line The line of text on which the unit resides.
param: {int} col The column of text on which the unit resides.

PropertyValueIterator(value)   X-Ref
A utility class that allows for easy iteration over the various parts of a
property value.

param: {parserlib.css.PropertyValue} value The property value to iterate over.

PropertyValuePart(text, line, col, optionalHint)   X-Ref
Represents a single part of a CSS property value, meaning that it represents
just one part of the data between ":" and ";".

param: {String} text The text representation of the unit.
param: {int} line The line of text on which the unit resides.
param: {int} col The column of text on which the unit resides.

Selector(parts, line, col)   X-Ref
Represents an entire single selector, including all parts but not
including multiple selectors (those separated by commas).

param: {Array} parts Array of selectors parts making up this selector.
param: {int} line The line of text on which the unit resides.
param: {int} col The column of text on which the unit resides.

SelectorPart(elementName, modifiers, text, line, col)   X-Ref
Represents a single part of a selector string, meaning a single set of
element name and modifiers. This does not include combinators such as
spaces, +, >, etc.

param: {String} elementName The element name in the selector or null
param: {Array} modifiers Array of individual modifiers for the element.
param: {String} text The text representation of the unit.
param: {int} line The line of text on which the unit resides.
param: {int} col The column of text on which the unit resides.

SelectorSubPart(text, type, line, col)   X-Ref
Represents a selector modifier string, meaning a class name, element name,
element ID, pseudo rule, etc.

param: {String} text The text representation of the unit.
param: {String} type The type of selector modifier.
param: {int} line The line of text on which the unit resides.
param: {int} col The column of text on which the unit resides.

Specificity(a, b, c, d)   X-Ref
Represents a selector's specificity.

param: {int} a Should be 1 for inline styles, zero for stylesheet styles
param: {int} b Number of ID selectors
param: {int} c Number of classes and pseudo classes
param: {int} d Number of element names and pseudo elements

updateValues(part)   X-Ref
No description

isHexDigit(c)   X-Ref
No description

isDigit(c)   X-Ref
No description

isWhitespace(c)   X-Ref
No description

isNewLine(c)   X-Ref
No description

isNameStart(c)   X-Ref
No description

isNameChar(c)   X-Ref
No description

isIdentStart(c)   X-Ref
No description

mix(receiver, supplier)   X-Ref
No description

TokenStream(input)   X-Ref
A token stream that produces CSS tokens.

param: {String|Reader} input The source of text to tokenize.

ValidationError(message, line, col)   X-Ref
Type to use when a validation error occurs.

param: {String} message The error message.
param: {int} line The line at which the error occurred.
param: {int} col The column at which the error occurred.

copy(to, from)   X-Ref
No description

EventTarget()   X-Ref
A generic base to inherit from for any object
that needs event handling.


StringReader(text)   X-Ref
Convenient way to read through strings.

param: {String} text The text to read.

SyntaxError(message, line, col)   X-Ref
Type to use when a syntax error occurs.

param: {String} message The error message.
param: {int} line The line at which the error occurred.
param: {int} col The column at which the error occurred.

SyntaxUnit(text, line, col, type)   X-Ref
Base type to represent a single syntactic unit.

param: {String} text The text of the unit.
param: {int} line The line of text on which the unit resides.
param: {int} col The column of text on which the unit resides.

TokenStreamBase(input, tokenData)   X-Ref
Generic TokenStream providing base functionality.

param: {String|StringReader} input The text to tokenize or a reader from

clone(parent, circular, depth, prototype, includeNonEnumerable)   X-Ref
Clones (copies) an Object using deep copying.

This function supports circular references by default, but if you are certain
there are no circular references in your object, you can save some CPU time
by calling clone(obj, false).

Caution: if `circular` is false and `parent` contains circular references,
your program may enter an infinite loop and crash.

param: `parent` - the object to be cloned
param: `circular` - set to true if the object to be cloned may contain
param: `depth` - set to a number if the object is only to be cloned to
param: `prototype` - sets the prototype to be used when cloning an object.
param: `includeNonEnumerable` - set to true if the non-enumerable properties

_clone(parent, depth)   X-Ref
No description

__objToStr(o)   X-Ref
No description

__isDate(o)   X-Ref
No description

__isArray(o)   X-Ref
No description

__isRegExp(o)   X-Ref
No description

__getRegExpFlags(re)   X-Ref
No description

applyEmbeddedRuleset(text, ruleset)   X-Ref
Returns a ruleset object based on embedded rules.

return: {Object} A ruleset object.
param: {String} text A string of css containing embedded rules.
param: {Object} ruleset A ruleset object to modify.

Reporter(lines, ruleset, allow, ignore)   X-Ref
An instance of Report is used to report results of the
verification back to the main API.

param: {String[]} lines The text lines of the source.
param: {Object} ruleset The set of rules to work with, including if
param: {Object} explicitly allowed lines
param: {[][]} ingore list of line ranges to be ignored

startRule()   X-Ref
No description

endRule()   X-Ref
No description

reportProperty(name, display, msg)   X-Ref
No description

startRule()   X-Ref
No description

endRule()   X-Ref
No description

startRule()   X-Ref
No description

startRule()   X-Ref
No description

startPage()   X-Ref
No description

startRule(event)   X-Ref
No description

endRule()   X-Ref
No description

startRule(event)   X-Ref
No description

startRule()   X-Ref
No description

endRule(event)   X-Ref
No description

startRule()   X-Ref
No description

endRule()   X-Ref
No description

startRule()   X-Ref
No description

endRule()   X-Ref
No description



Generated: Wed Dec 25 01:00:02 2024 Cross-referenced by PHPXref 0.7.1