Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DAddYE/igo
/ functions
Functions
594 in github.com/DAddYE/igo
⨍
Functions
594
◇
Types & classes
118
↓ 3 callers
Method
adjBlock
adjBlock prints an "adjacent" block (e.g., a for-loop or function body) following a header (e.g., a for-loop control clause or function signature) of
from_go/nodes.go:1500
↓ 3 callers
Method
atComma
(context string)
parser/parser.go:423
↓ 3 callers
Method
checkExprOrType
checkExprOrType checks that x is an expression or a type (and not a raw type such as [...]T).
parser/parser.go:1507
↓ 3 callers
Method
controlClause
(isForStmt bool, init ast.Stmt, expr ast.Expr, post ast.Stmt)
from_go/nodes.go:992
↓ 3 callers
Method
controlClause
(isForStmt bool, init ast.Stmt, expr ast.Expr, post ast.Stmt)
to_go/nodes.go:981
↓ 3 callers
Method
decl
(decl ast.Decl)
from_go/nodes.go:1559
↓ 3 callers
Method
decl
(decl ast.Decl)
to_go/nodes.go:1531
↓ 3 callers
Method
declare
(scope, altScope *Scope, obj *Object)
ast/resolve.go:29
↓ 3 callers
Method
errorf
(pos token.Pos, format string, args ...interface{})
ast/resolve.go:25
↓ 3 callers
Function
filterFile
(src *File, f Filter, export bool)
ast/filter.go:234
↓ 3 callers
Function
goReport
(err error)
cmd/from_go.go:26
↓ 3 callers
Function
igoReport
(err error)
cmd/to_go.go:27
↓ 3 callers
Method
makeExpr
(s ast.Stmt)
parser/parser.go:1877
↓ 3 callers
Function
matchSpace
matchSpace reformats src to use the same space context as orig. 1) If orig begins with blank lines, matchSpace inserts them at the beginning of src. 2
cmd/utils.go:91
↓ 3 callers
Method
nextComment
()
from_go/from_go.go:123
↓ 3 callers
Method
nextComment
()
to_go/to_go.go:121
↓ 3 callers
Function
nlimit
---------------------------------------------------------------------------- Printing interface nlines limits n to maxNewlines.
from_go/from_go.go:662
↓ 3 callers
Function
nlimit
---------------------------------------------------------------------------- Printing interface nlines limits n to maxNewlines.
to_go/to_go.go:601
↓ 3 callers
Method
parameters
(fields *ast.FieldList)
to_go/nodes.go:265
↓ 3 callers
Method
parseBody
(scope *ast.Scope)
parser/parser.go:1096
↓ 3 callers
Method
parseDecl
(sync func(*parser))
parser/parser.go:2524
↓ 3 callers
Method
parseStmt
()
parser/parser.go:2234
↓ 3 callers
Function
reduceDepth
(depth int)
from_go/nodes.go:586
↓ 3 callers
Function
reduceDepth
(depth int)
to_go/nodes.go:588
↓ 3 callers
Method
signature
(params, result *ast.FieldList)
to_go/nodes.go:328
↓ 3 callers
Method
spec
The parameter n is the number of specs in the group. If doIndent is set, multi-line identifier lists in the spec are indented when the first linebreak
from_go/nodes.go:1350
↓ 3 callers
Method
spec
The parameter n is the number of specs in the group. If doIndent is set, multi-line identifier lists in the spec are indented when the first linebreak
to_go/nodes.go:1327
↓ 3 callers
Function
stripCR
(b []byte)
scanner/scanner.go:410
↓ 3 callers
Function
stripParens
(x ast.Expr)
from_go/nodes.go:959
↓ 3 callers
Function
stripParens
(x ast.Expr)
to_go/nodes.go:948
↓ 3 callers
Function
trimRight
trimRight returns s with trailing whitespace removed.
from_go/from_go.go:423
↓ 3 callers
Method
tryType
()
parser/parser.go:1070
↓ 3 callers
Method
tryVarType
If the result is an identifier, it is not resolved.
parser/parser.go:764
↓ 3 callers
Function
walkStmtList
(v Visitor, list []Stmt)
ast/walk.go:30
↓ 3 callers
Method
writeString
writeString writes the string s to p.output and updates p.pos, p.out, and p.last. If isLit is set, s is escaped w/ tabwriter.Escape characters to prot
from_go/from_go.go:223
↓ 2 callers
Method
AddLine
AddLine adds the line offset for a new line. The line offset must be larger than the offset for the previous line and smaller than the file size; othe
token/position.go:131
↓ 2 callers
Method
File
File returns the file that contains the position p. If no such file is found (for instance for p == NoPos), the result is nil.
token/position.go:423
↓ 2 callers
Function
Inspect
Inspect traverses an AST in depth-first order: It starts by calling f(node); node must not be nil. If f returns true, Inspect invokes f for all the no
ast/walk.go:382
↓ 2 callers
Method
IsLiteral
Predicates IsLiteral returns true for tokens corresponding to identifiers and basic type literals; it returns false otherwise.
token/token.go:306
↓ 2 callers
Method
MergeLine
MergeLine merges a line with the following line. It is akin to replacing the newline character at the end of the line with a space (to not change the
token/position.go:144
↓ 2 callers
Function
NewScope
NewScope creates a new scope nested in the outer scope.
ast/scope.go:25
↓ 2 callers
Method
NumFields
NumFields returns the number of (named and anonymous fields) in a FieldList.
ast/ast.go:213
↓ 2 callers
Method
Offset
Offset returns the offset for the given file position p; p must be a valid Pos value in that file. f.Offset(f.Pos(offset)) == offset.
token/position.go:247
↓ 2 callers
Method
Size
Size returns the size of file f as registered with AddFile.
token/position.go:115
↓ 2 callers
Method
Visit
(node Node)
ast/walk.go:13
↓ 2 callers
Function
abs
(i int)
main.go:53
↓ 2 callers
Method
adjBlock
adjBlock prints an "adjacent" block (e.g., a for-loop or function body) following a header (e.g., a for-loop control clause or function signature) of
to_go/nodes.go:1479
↓ 2 callers
Method
atLineBegin
atLineBegin emits a //line comment if necessary and prints indentation.
from_go/from_go.go:162
↓ 2 callers
Method
atLineBegin
atLineBegin emits a //line comment if necessary and prints indentation.
to_go/to_go.go:160
↓ 2 callers
Method
consumeCommentGroup
Consume a group of adjacent comments, add it to the parser's comments list, and return it together with the line at which the last comment in the grou
parser/parser.go:276
↓ 2 callers
Function
createDir
(file string)
cmd/utils.go:61
↓ 2 callers
Function
cutSpace
(b []byte)
cmd/utils.go:70
↓ 2 callers
Method
declList
(list []ast.Decl)
from_go/nodes.go:1586
↓ 2 callers
Method
declList
(list []ast.Decl)
to_go/nodes.go:1558
↓ 2 callers
Function
digitVal
(ch rune)
scanner/scanner.go:226
↓ 2 callers
Method
distanceFrom
distanceFrom returns the column difference between from and p.pos (the current estimated position) if both are on the same line; if they are on differ
to_go/nodes.go:1510
↓ 2 callers
Method
eol
()
ast/commentmap.go:87
↓ 2 callers
Method
error
(pos token.Pos, msg string)
ast/resolve.go:21
↓ 2 callers
Method
expectClosing
expectClosing is like expect but provides a better error message for the common case of a missing comma before a newline.
parser/parser.go:395
↓ 2 callers
Method
fieldList
(fields *ast.FieldList, isStruct, isIncomplete bool)
from_go/nodes.go:387
↓ 2 callers
Method
fieldList
(fields *ast.FieldList, isStruct, isIncomplete bool)
to_go/nodes.go:386
↓ 2 callers
Method
file
(p Pos)
token/position.go:396
↓ 2 callers
Function
filterDecl
(decl Decl, f Filter, export bool)
ast/filter.go:209
↓ 2 callers
Function
filterFieldList
(fields *FieldList, filter Filter, export bool)
ast/filter.go:78
↓ 2 callers
Function
filterIdentList
(list []*Ident, f Filter)
ast/filter.go:49
↓ 2 callers
Function
filterPackage
(pkg *Package, f Filter, export bool)
ast/filter.go:261
↓ 2 callers
Function
filterParamList
(fields *FieldList, filter Filter, export bool)
ast/filter.go:113
↓ 2 callers
Method
fprint
fprint implements Fprint and takes a nodesSizes map for setting up the printer state.
from_go/from_go.go:1065
↓ 2 callers
Method
fprint
fprint implements Fprint and takes a nodesSizes map for setting up the printer state.
to_go/to_go.go:1012
↓ 2 callers
Function
getDoc
getNode returns the ast.CommentGroup associated with n, if any.
from_go/from_go.go:848
↓ 2 callers
Function
getDoc
getNode returns the ast.CommentGroup associated with n, if any.
to_go/to_go.go:783
↓ 2 callers
Function
goProcessFile
(filename string, in io.Reader, out io.Writer)
cmd/from_go.go:46
↓ 2 callers
Function
igoProcessFile
(filename string, in io.Reader, out io.Writer)
cmd/to_go.go:44
↓ 2 callers
Function
importComment
(s Spec)
ast/import.go:70
↓ 2 callers
Method
init
(fset *token.FileSet, filename string, src []byte, mode Mode)
parser/parser.go:71
↓ 2 callers
Function
isBinary
(expr ast.Expr)
from_go/nodes.go:669
↓ 2 callers
Function
isBinary
(expr ast.Expr)
to_go/nodes.go:671
↓ 2 callers
Function
isLetter
(ch rune)
scanner/scanner.go:210
↓ 2 callers
Function
isTypeName
isTypeName returns true iff x is a (qualified) TypeName.
parser/parser.go:1458
↓ 2 callers
Function
isTypeSwitchAssert
(x ast.Expr)
parser/parser.go:1970
↓ 2 callers
Method
makeIdentList
(list []ast.Expr)
parser/parser.go:646
↓ 2 callers
Method
next
()
ast/commentmap.go:91
↓ 2 callers
Method
next0
Advance to the next token.
parser/parser.go:242
↓ 2 callers
Method
parameters
(fields *ast.FieldList)
from_go/nodes.go:266
↓ 2 callers
Method
parseBranchStmt
(tok token.Token)
parser/parser.go:1859
↓ 2 callers
Method
parseCallExpr
()
parser/parser.go:1801
↓ 2 callers
Method
parseExprList
---------------------------------------------------------------------------- Common productions If lhs is set, result list elements which are identifi
parser/parser.go:536
↓ 2 callers
Method
parseFieldDecl
(scope *ast.Scope)
parser/parser.go:662
↓ 2 callers
Method
parseFuncType
()
parser/parser.go:910
↓ 2 callers
Method
parseGenDecl
(keyword token.Token, f parseSpecFunction)
parser/parser.go:2408
↓ 2 callers
Method
parseIdentList
()
parser/parser.go:518
↓ 2 callers
Method
parseLhsList
()
parser/parser.go:550
↓ 2 callers
Method
parseLiteralValue
(typ ast.Expr)
parser/parser.go:1410
↓ 2 callers
Method
parseMethodSpec
(scope *ast.Scope)
parser/parser.go:922
↓ 2 callers
Method
parseParameters
(scope *ast.Scope, ellipsisOk bool)
parser/parser.go:865
↓ 2 callers
Method
parseReceiver
(typ ast.Expr, scope *ast.Scope)
parser/parser.go:2438
↓ 2 callers
Method
parseReturnStmt
()
parser/parser.go:1843
↓ 2 callers
Method
parseSmallStmt
()
parser/parser.go:2202
↓ 2 callers
Method
parseTypeName
If the result is an identifier, it is not resolved.
parser/parser.go:607
↓ 2 callers
Method
parseVarList
If any of the results are identifiers, they are not resolved.
parser/parser.go:793
← previous
next →
101–200 of 594, ranked by callers