ShorthandPropertyAssignment

/**
* A shorthand property assignment.
*
* TODO: handle decorators and modifiers
*/

Inherit from ObjectLiteralElement

Primary key: id: int

schema ShorthandPropertyAssignment extends ObjectLiteralElement {
  @primary id: int
}

ShorthandPropertyAssignment::getIndex

pub fn getIndex(self: ShorthandPropertyAssignment) -> int;

ShorthandPropertyAssignment::getParentOid

/**
* Gets the parent oid of this node.
*/
pub fn getParentOid(self: ShorthandPropertyAssignment) -> int;

ShorthandPropertyAssignment::getEndColumnNumber

pub fn getEndColumnNumber(self: ShorthandPropertyAssignment) -> int;

ShorthandPropertyAssignment::getKind

/**
* Get the syntax kind of this node
*/
pub fn getKind(self: ShorthandPropertyAssignment) -> int;

ShorthandPropertyAssignment::getAModifier

/**
* Gets a modifier.
*/
pub fn getAModifier(self: ShorthandPropertyAssignment) -> *Modifier;

ShorthandPropertyAssignment::getStartLineNumber

pub fn getStartLineNumber(self: ShorthandPropertyAssignment) -> int;

ShorthandPropertyAssignment::getText

/**
* Gets the text of this node.
*/
pub fn getText(self: ShorthandPropertyAssignment) -> string;

ShorthandPropertyAssignment::getModifier

/**
* Gets the `i`th modifier.
*/
pub fn getModifier(self: ShorthandPropertyAssignment, i: int) -> Modifier;

ShorthandPropertyAssignment::getRelativePath

/**
* Gets the relative path of this node.
*/
pub fn getRelativePath(self: ShorthandPropertyAssignment) -> string;

ShorthandPropertyAssignment::getDecorator

/**
* Gets the `i`th decorator.
*/
pub fn getDecorator(self: ShorthandPropertyAssignment, i: int) -> Decorator;

ShorthandPropertyAssignment::getChildCount

/**
* Gets the number of child nodes.
*/
pub fn getChildCount(self: ShorthandPropertyAssignment) -> int;

ShorthandPropertyAssignment::getChild

/**
* Gets the `i`th child of this node.
*/
pub fn getChild(self: ShorthandPropertyAssignment, i: int) -> Node;

ShorthandPropertyAssignment::getRoot

/**
* Gets the root top-level of this node. 
*/
pub fn getRoot(self: ShorthandPropertyAssignment) -> TopLevelDO;

ShorthandPropertyAssignment::getParent

pub fn getParent(self: ShorthandPropertyAssignment) -> ObjectLiteralExpression;

ShorthandPropertyAssignment::__all__

Data constraint method.

pub fn __all__(db: JavascriptDB) -> *ShorthandPropertyAssignment;

ShorthandPropertyAssignment::getLocation

/**
* Gets the location of this node.
*/
pub fn getLocation(self: ShorthandPropertyAssignment) -> Location;

ShorthandPropertyAssignment::getADescendantByLevel

/**
* Gets a descendant of this node by the level of the hierarchy.
*
* @param level: the number of levels to go up in the hierarchy.
*/
pub fn getADescendantByLevel(self: ShorthandPropertyAssignment, level: int) -> *Node;

ShorthandPropertyAssignment::getLastChild

/**
* Gets the last child of this node parent.
*/
pub fn getLastChild(self: ShorthandPropertyAssignment) -> Node;

ShorthandPropertyAssignment::getNameNode

pub fn getNameNode(self: ShorthandPropertyAssignment) -> Identifier;

ShorthandPropertyAssignment::getADescendant

/**
* Gets a descendant of this node. 
*/
pub fn getADescendant(self: ShorthandPropertyAssignment) -> *Node;

ShorthandPropertyAssignment::getEnclosingFunction

/**
* Gets the enclosing function of it
*/
pub fn getEnclosingFunction(self: ShorthandPropertyAssignment) -> FunctionLikeDeclaration;

ShorthandPropertyAssignment::getName

pub fn getName(self: ShorthandPropertyAssignment) -> string;

ShorthandPropertyAssignment::getAnAncestor

/**
* Gets an ancestor of this node. 
*/
pub fn getAnAncestor(self: ShorthandPropertyAssignment) -> *Node;

ShorthandPropertyAssignment::getIdentifier

pub fn getIdentifier(self: ShorthandPropertyAssignment) -> Identifier;

ShorthandPropertyAssignment::getAChild

/**
* Gets a child node of this node.
*/
pub fn getAChild(self: ShorthandPropertyAssignment) -> *Node;

ShorthandPropertyAssignment::getStartColumnNumber

pub fn getStartColumnNumber(self: ShorthandPropertyAssignment) -> int;

ShorthandPropertyAssignment::getSymbol

/**
* Gets the symbol associated with this node.
*/
pub fn getSymbol(self: ShorthandPropertyAssignment) -> Symbol;

ShorthandPropertyAssignment::getAnAncestorEnclosingFunction

/**
* Gets an ancestor enclosing function of it
*/
pub fn getAnAncestorEnclosingFunction(self: ShorthandPropertyAssignment) -> *FunctionLikeDeclaration;

ShorthandPropertyAssignment::getValueSymbol

/**
* Gets the value symbol associated with this shorthand property assignment.
*/
pub fn getValueSymbol(self: ShorthandPropertyAssignment) -> Symbol;

ShorthandPropertyAssignment::getEndLineNumber

pub fn getEndLineNumber(self: ShorthandPropertyAssignment) -> int;

ShorthandPropertyAssignment::getATrailingComment

/**
* Gets the trailing comments of it
*/
pub fn getATrailingComment(self: ShorthandPropertyAssignment) -> *Comment;

ShorthandPropertyAssignment::getAnAncestorByLevel

/**
* Gets an ancestor of this node by the level of the hierarchy.
*
* @param level: the number of levels to go up in the hierarchy.
*/
pub fn getAnAncestorByLevel(self: ShorthandPropertyAssignment, level: int) -> Node;

ShorthandPropertyAssignment::getALeadingComment

/**
* Gets the leading comments of it
*/
pub fn getALeadingComment(self: ShorthandPropertyAssignment) -> *Comment;

ShorthandPropertyAssignment::getFile

/**
* Gets the file of this node.
*/
pub fn getFile(self: ShorthandPropertyAssignment) -> File;

ShorthandPropertyAssignment::getAComment

/**
* Gets the comments related to it
*/
pub fn getAComment(self: ShorthandPropertyAssignment) -> *Comment;

ShorthandPropertyAssignment::getADecorator

/**
* Gets a decorator.
*/
pub fn getADecorator(self: ShorthandPropertyAssignment) -> *Decorator;