GoFile

Inherit from File

Primary key: id: int

schema GoFile extends File {
  @primary id: int
}

GoFile::getText

// getText Extract the text associated with a specific node in a file
  • Parameter self: GoFile
  • Return string
pub fn getText(self: GoFile) -> string;

GoFile::getBelongsFunction

pub fn getBelongsFunction(self: GoFile) -> Function;

GoFile::getAssociatedCommentString

  • Parameter self: GoFile
  • Return string
pub fn getAssociatedCommentString(self: GoFile) -> string;

GoFile::getPkgLoc

pub fn getPkgLoc(self: GoFile) -> Location;

GoFile::getParentNode

pub fn getParentNode(self: GoFile) -> Node;

GoFile::getTextSize

  • Parameter self: GoFile
  • Return int
pub fn getTextSize(self: GoFile) -> int;

GoFile::getChildCount

  • Parameter self: GoFile
  • Return int
pub fn getChildCount(self: GoFile) -> int;

GoFile::getTextStartOffset

  • Parameter self: GoFile
  • Return int
pub fn getTextStartOffset(self: GoFile) -> int;

GoFile::isRootNode

  • Parameter self: GoFile
  • Return bool
pub fn isRootNode(self: GoFile) -> bool;

GoFile::isTestFile

  • Parameter self: GoFile
  • Return bool
pub fn isTestFile(self: GoFile) -> bool;

GoFile::getAchildNode

pub fn getAchildNode(self: GoFile) -> *Node;

GoFile::filterByKeyWords

// filterByKeyWords
  • Parameter self: GoFile
  • Return bool
pub fn filterByKeyWords(self: GoFile) -> bool;

GoFile::__all__

Data constraint method.

pub fn __all__(db: GoDB) -> *GoFile;

GoFile::getLocation

pub fn getLocation(self: GoFile) -> Location;

GoFile::print

  • Parameter self: GoFile
  • Return *string
pub fn print(self: GoFile) -> *string;

GoFile::getType

  • Parameter self: GoFile
  • Return string
pub fn getType(self: GoFile) -> string;

GoFile::getPkgName

  • Parameter self: GoFile
  • Return string
pub fn getPkgName(self: GoFile) -> string;

GoFile::filterByFolderNames

// filterByFolderNames
  • Parameter self: GoFile
  • Return bool
pub fn filterByFolderNames(self: GoFile) -> bool;

GoFile::isAutoGenereatedFile

  • Parameter self: GoFile
  • Return bool
pub fn isAutoGenereatedFile(self: GoFile) -> bool;

GoFile::getAnAncestorForIndex

  • Parameter self: GoFile
  • Parameter index: int
  • Return Node
pub fn getAnAncestorForIndex(self: GoFile, index: int) -> Node;

GoFile::getDepthFromRoot

  • Parameter self: GoFile
  • Return int
pub fn getDepthFromRoot(self: GoFile) -> int;

GoFile::hasLocation

  • Parameter self: GoFile
  • Return bool
pub fn hasLocation(self: GoFile) -> bool;

GoFile::getFunctionCount

/**
* 获取每个文件包含的函数
*/
  • Parameter self: GoFile
  • Return int
pub fn getFunctionCount(self: GoFile) -> int;

GoFile::getBelongsPkg

pub fn getBelongsPkg(self: GoFile) -> Pkg;

GoFile::getAnAncestor

pub fn getAnAncestor(self: GoFile) -> *Node;

GoFile::getName

  • Parameter self: GoFile
  • Return string
pub fn getName(self: GoFile) -> string;

GoFile::countAssociatedComment

  • Parameter self: GoFile
  • Return int
pub fn countAssociatedComment(self: GoFile) -> int;

GoFile::isModFile

  • Parameter self: GoFile
  • Return bool
pub fn isModFile(self: GoFile) -> bool;

GoFile::isGoFile

  • Parameter self: GoFile
  • Return bool
pub fn isGoFile(self: GoFile) -> bool;

GoFile::getMd5Sum

  • Parameter self: GoFile
  • Return string
pub fn getMd5Sum(self: GoFile) -> string;

GoFile::getBelongsFile

pub fn getBelongsFile(self: GoFile) -> File;

GoFile::getLineInfo

pub fn getLineInfo(self: GoFile) -> NumberOfLineDO;

GoFile::getSha256Sum

  • Parameter self: GoFile
  • Return string
pub fn getSha256Sum(self: GoFile) -> string;