Class JSLint::JSLintGlobal

A JSLint directive declaring global variables.

This is either an explicit global directive, or a jslint directive that implicitly declares a group of related global variables.

Direct supertypes

Indirect supertypes

Known direct subtypes

Predicates

appliesTo

Holds if this directive applies to statement or expression s, meaning that s is nested in the directive’s scope.

declaresGlobalForAccess

Holds if this directive applies to gva and declares the variable it references.

Inherited predicates

declaresGlobal

Holds if name is a global variable declared by this directive, with writable indicating whether the variable is declared to be writable or not.

from GlobalDeclaration
definesFlag

Holds if this directive sets flag name to value.

from JSLintDirective
getContent

Gets the content of this directive, not including the directive name itself, and with end-of-line characters replaced by spaces.

from JSLintDirective
getEndLine

Gets the line on which this element ends.

from Locatable
getFile

Gets the file this program element comes from.

from Locatable
getLine

Gets the ith line of comment text.

from Comment
getLocation

Gets this element’s location.

from Comment
getName

Gets the name of this directive.

from JSLintDirective
getNextToken

Gets the next token after this comment.

from Comment
getNumLines

Gets the number of lines covered by this element.

from Comment
getScope

Gets the scope of this directive, which is either the closest enclosing function, or the toplevel.

from JSLintDirective
getStartLine

Gets the line on which this element starts.

from Locatable
getText

Gets the text of this comment, not including delimiters.

from Comment
getTopLevel

Gets the toplevel element this comment belongs to.

from Comment
onLines

Holds if this comment spans lines start to end (inclusive) in file f.

from Comment
toString

Gets a textual representation of this element.

from Comment