本文整理匯總了Golang中tritium/proto.Function.GetLineNumber方法的典型用法代碼示例。如果您正苦於以下問題:Golang Function.GetLineNumber方法的具體用法?Golang Function.GetLineNumber怎麽用?Golang Function.GetLineNumber使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類tritium/proto.Function
的用法示例。
在下文中一共展示了Function.GetLineNumber方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Golang代碼示例。
示例1: printFunction
func printFunction(f *tp.Function, indLvl int) {
printIndent("Name -> %v", indLvl, f.GetName())
printIndent("Description -> %v", indLvl, f.GetDescription())
printIndent("Filename -> %v", indLvl, f.GetFilename())
printIndent("Line Number -> %v", indLvl, f.GetLineNumber())
printIndent("Namespace -> %v", indLvl, f.GetNamespace())
printIndent("Scope Type Id -> %v", indLvl, f.GetScopeTypeId())
printIndent("Scope Type -> %v", indLvl, f.GetScopeType())
printIndent("Return Type Id -> %v", indLvl, f.GetReturnTypeId())
printIndent("Return Type -> %v", indLvl, f.GetReturnType())
printIndent("Opens Type Id -> %v", indLvl, f.GetOpensTypeId())
printIndent("Opens Type -> %v", indLvl, f.GetOpensType())
printIndent("BuiltIn -> %v", indLvl, f.GetBuiltIn())
printIndent("Arguments:", indLvl)
for ind, item := range f.GetArgs() {
printIndent("Argument[%d] -> %v", indLvl, ind, item)
}
printIndent("Instruction:", indLvl)
printInstruction(f.GetInstruction(), indLvl+1)
}