Class PropertySetter
A property setter in an object literal.
Example:
var p = {
x: 1,
y: 1,
diag: function() { return this.x - this.y; },
get area() { return this.x * this.y; },
set area(a) { this.x = Math.sqrt(a); this.y = Math.sqrt(a); } // property setter
}
Import path
import javascriptDirect supertypes
Indirect supertypes
Inherited predicates
| getAChild | Gets a child node of this node. | from AstNode |
| getAChildExpr | Gets a child expression of this node. | from AstNode |
| getAChildStmt | Gets a child statement of this node. | from AstNode |
| getADecorator | Gets a decorator applied to this property. | from Property |
| getAPrimaryQlClass | Gets the primary QL class for the Locatable. | from Property |
| getAToken | Gets a token belonging to this element. | from AstNode |
| getChild | Gets the | from AstNode |
| getChildExpr | Gets the | from AstNode |
| getChildStmt | Gets the | from AstNode |
| getChildTypeExpr | Gets the | from AstNode |
| getContainer | Gets the function or toplevel to which this node belongs. | from NodeInStmtContainer |
| getDecorator | Gets the | from Property |
| getDocumentation | Gets the JSDoc comment for this element, if any. | from Documentable |
| getEndLine | Gets the line on which this element ends. | from Locatable |
| getFile | Gets the file this program element comes from. | from AstNode |
| getFirstControlFlowNode | Gets the first control flow node belonging to this syntactic entity. | from Property |
| getFirstToken | Gets the first token belonging to this element. | from AstNode |
| getIndex | Gets the (0-based) index at which this property appears in its enclosing literal. | from Property |
| getInit | Gets the expression specifying the initial value of this property. | from PropertyAccessor |
| getKind | Gets the kind of this property, which is an opaque integer value indicating whether this property is a value property, a property getter, or a property setter. | from Property |
| getLastToken | Gets the last token belonging to this element. | from AstNode |
| getLocation | Gets this element’s location. | from Locatable |
| getName | Gets the name of this property. | from Property |
| getNameExpr | Gets the expression specifying the name of this property. | from Property |
| getNumChild | Gets the number of child nodes of this node. | from AstNode |
| getNumChildExpr | Gets the number of child expressions of this node. | from AstNode |
| getNumChildStmt | Gets the number of child statements of this node. | from AstNode |
| getNumLines | Gets the number of lines covered by this element. | from Locatable |
| getObjectExpr | Gets the object literal this property belongs to. | from Property |
| getParent | Gets the parent node of this node, if any. | from AstNode |
| getPrimaryQlClasses | Gets a comma-separated list of the names of the primary CodeQL classes to which this element belongs. | from Locatable |
| getStartLine | Gets the line on which this element starts. | from Locatable |
| getTopLevel | Gets the toplevel syntactic unit to which this element belongs. | from AstNode |
| inExternsFile | Holds if this syntactic entity belongs to an externs file. | from AstNode |
| isAmbient | Holds if this is part of an ambient declaration or type annotation in a TypeScript file. | from AstNode |
| isComputed | Holds if the name of this property is computed. | from Property |
| isImpure | Holds if this property is impure, that is, the evaluation of its name or its initializer expression could have side effects. | from Property |
| isMethod | Holds if this property is defined using method syntax. | from Property |
| isShorthand | Holds if this property is defined using shorthand syntax. | from Property |
| toString | Gets a textual representation of this element. | from Property |