Unknown

/**
* An unknown token.
*/

Inherit from Token

Primary key: id: int

schema Unknown extends Token {
  @primary id: int
}

Unknown::getSymbol

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

Unknown::getAnAncestorEnclosingFunction

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

Unknown::getIndex

  • Parameter self: Unknown
  • Return int
pub fn getIndex(self: Unknown) -> int;

Unknown::getParentOid

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

Unknown::getRelativePath

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

Unknown::getLastChild

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

Unknown::getEndColumnNumber

  • Parameter self: Unknown
  • Return int
pub fn getEndColumnNumber(self: Unknown) -> int;

Unknown::getParent

/**
* Gets the parent node of this node.
*/
pub fn getParent(self: Unknown) -> Node;

Unknown::getChildCount

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

Unknown::getDecorator

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

Unknown::getEndLineNumber

  • Parameter self: Unknown
  • Return int
pub fn getEndLineNumber(self: Unknown) -> int;

Unknown::getATrailingComment

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

Unknown::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.
*/
  • Parameter self: Unknown
  • Parameter level: int
  • Return Node
pub fn getAnAncestorByLevel(self: Unknown, level: int) -> Node;

Unknown::getChild

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

Unknown::getRoot

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

Unknown::getAChild

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

Unknown::getStartColumnNumber

  • Parameter self: Unknown
  • Return int
pub fn getStartColumnNumber(self: Unknown) -> int;

Unknown::getStartLineNumber

  • Parameter self: Unknown
  • Return int
pub fn getStartLineNumber(self: Unknown) -> int;

Unknown::__all__

Data constraint method.

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

Unknown::getLocation

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

Unknown::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: Unknown, level: int) -> *Node;

Unknown::getKind

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

Unknown::getAModifier

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

Unknown::getAnAncestor

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

Unknown::getEnclosingFunction

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

Unknown::getADescendant

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

Unknown::getALeadingComment

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

Unknown::getFile

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

Unknown::getModifier

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

Unknown::getText

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

Unknown::getAComment

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

Unknown::getADecorator

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