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
↓ 2 callers
Method
parseVarType
If the result is an identifier, it is not resolved.
parser/parser.go:781
↓ 2 callers
Method
pop
pop pops all nodes that appear lexically before pos (i.e., whose lexical extent has ended before or at pos). It returns the last node popped.
ast/commentmap.go:117
↓ 2 callers
Method
position
(p Pos)
token/position.go:285
↓ 2 callers
Method
scanEscape
(quote rune)
scanner/scanner.go:317
↓ 2 callers
Method
scanNumber
(seenDecimalPoint bool)
scanner/scanner.go:244
↓ 2 callers
Function
searchInts
----------------------------------------------------------------------------- Helper functions
token/position.go:443
↓ 2 callers
Method
setLineComment
(text string)
from_go/nodes.go:379
↓ 2 callers
Method
setLineComment
(text string)
to_go/nodes.go:378
↓ 2 callers
Method
shortVarDecl
(decl *ast.AssignStmt, list []ast.Expr)
parser/parser.go:142
↓ 2 callers
Function
sortComments
sortComments sorts the list of comment groups in source order.
ast/commentmap.go:22
↓ 2 callers
Function
sortSpecs
(fset *token.FileSet, f *File, specs []Spec)
ast/import.go:91
↓ 2 callers
Function
stripParensAlways
(x ast.Expr)
from_go/nodes.go:985
↓ 2 callers
Function
stripParensAlways
(x ast.Expr)
to_go/nodes.go:974
↓ 2 callers
Method
switch4
(tok0, tok1 token.Token, ch2 rune, tok2, tok3 token.Token)
scanner/scanner.go:538
↓ 2 callers
Method
tokPrec
()
parser/parser.go:1647
↓ 2 callers
Method
tryResolve
If x is an identifier, tryResolve attempts to resolve x by looking up the object it denotes. If no object is found and collectUnresolved is set, x is
parser/parser.go:180
↓ 2 callers
Function
unparen
If x is of the form (T), unparen returns unparen(T), otherwise it returns x.
parser/parser.go:1497
↓ 2 callers
Function
walkIdentList
Helper functions for common node lists. They may be empty.
ast/walk.go:18
↓ 2 callers
Method
writeComment
(comment *ast.Comment, prefix string)
to_go/to_go.go:433
↓ 2 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
to_go/to_go.go:221
↓ 1 callers
Method
AddFile
AddFile adds a new file with a given filename, base offset, and file size to the file set s and returns the file. Multiple files may have the same nam
token/position.go:353
↓ 1 callers
Method
AddLineInfo
AddLineInfo adds alternative file and line number information for a given file offset. The offset must be larger than the offset for the previously ad
token/position.go:224
↓ 1 callers
Method
Base
Base returns the base offset of file f as registered with AddFile.
token/position.go:110
↓ 1 callers
Function
Fprint
Fprint prints the (sub-)tree starting at AST node x to w. If fset != nil, position information is interpreted relative to that file set. Otherwise pos
ast/print.go:40
↓ 1 callers
Method
Fprint
Fprint "pretty-prints" an AST node to output for a given configuration cfg. Position information is interpreted relative to the file set fset. The nod
from_go/from_go.go:1126
↓ 1 callers
Method
Init
Init prepares the scanner s to tokenize the text src by setting the scanner at the beginning of src. The scanner uses the file set file for position i
scanner/scanner.go:130
↓ 1 callers
Method
IsKeyword
IsKeyword returns true for tokens corresponding to keywords; it returns false otherwise.
token/token.go:316
↓ 1 callers
Method
IsOperator
IsOperator returns true for tokens corresponding to operators and delimiters; it returns false otherwise.
token/token.go:311
↓ 1 callers
Method
IsValid
IsValid returns true if the position is valid.
token/position.go:30
↓ 1 callers
Function
NewIdent
---------------------------------------------------------------------------- Convenience functions for Idents NewIdent creates a new Ident without pos
ast/ast.go:523
↓ 1 callers
Function
NewObj
NewObj creates a new object of a given kind and name.
ast/scope.go:87
↓ 1 callers
Function
NotNilFilter
NotNilFilter returns true for field values that are not nil; it returns false otherwise.
ast/print.go:22
↓ 1 callers
Function
ParseFile
ParseFile parses the source code of a single Go source file and returns the corresponding ast.File node. The source code may be provided via the filen
parser/interface.go:84
↓ 1 callers
Method
Scan
Scan scans the next token and returns the token position, the token, and its literal string if applicable. The source end is indicated by token.EOF.
scanner/scanner.go:585
↓ 1 callers
Method
Text
Text returns the text of the comment. Comment markers (//, /*, and */), the first space of a line comment, and leading and trailing empty lines are re
ast/ast.go:98
↓ 1 callers
Method
Write
(data []byte)
from_go/from_go.go:977
↓ 1 callers
Method
Write
(data []byte)
to_go/to_go.go:924
↓ 1 callers
Method
addComment
(n Node, c *CommentGroup)
ast/commentmap.go:37
↓ 1 callers
Method
alignFuncIndent
()
from_go/nodes.go:1061
↓ 1 callers
Method
binaryExpr
Format the binary expression: decide the cutoff and then format. Let's call depth == 1 Normal mode, and depth > 1 Compact mode. (Algorithm suggestion
from_go/nodes.go:630
↓ 1 callers
Method
binaryExpr
Format the binary expression: decide the cutoff and then format. Let's call depth == 1 Normal mode, and depth > 1 Compact mode. (Algorithm suggestion
to_go/nodes.go:632
↓ 1 callers
Method
bodySize
bodySize is like nodeSize but it is specialized for *ast.BlockStmt's.
to_go/nodes.go:1450
↓ 1 callers
Method
closeLabelScope
()
parser/parser.go:102
↓ 1 callers
Function
collapse
collapse indicates whether prev may be removed, leaving only next.
ast/import.go:79
↓ 1 callers
Method
commentsHaveNewline
commentsHaveNewline reports whether a list of comments belonging to an *ast.CommentGroup contains newlines. Because the position information may only
from_go/from_go.go:107
↓ 1 callers
Method
commentsHaveNewline
commentsHaveNewline reports whether a list of comments belonging to an *ast.CommentGroup contains newlines. Because the position information may only
to_go/to_go.go:105
↓ 1 callers
Method
consumeComment
Consume a comment and return it and the line on which it ends.
parser/parser.go:264
↓ 1 callers
Function
cutoff
(e *ast.BinaryExpr, depth int)
from_go/nodes.go:561
↓ 1 callers
Function
cutoff
(e *ast.BinaryExpr, depth int)
to_go/nodes.go:563
↓ 1 callers
Function
declToken
---------------------------------------------------------------------------- Files
from_go/nodes.go:1575
↓ 1 callers
Function
declToken
---------------------------------------------------------------------------- Files
to_go/nodes.go:1547
↓ 1 callers
Function
deref
If x is of the form *T, deref returns T, otherwise it returns x.
parser/parser.go:1489
↓ 1 callers
Function
diffPrec
(expr ast.Expr, prec int)
from_go/nodes.go:578
↓ 1 callers
Function
diffPrec
(expr ast.Expr, prec int)
to_go/nodes.go:580
↓ 1 callers
Function
fieldName
fieldName assumes that x is the type of an anonymous field and returns the corresponding field name. If x is not an acceptable anonymous field, the re
ast/filter.go:64
↓ 1 callers
Method
file
(src *ast.File)
from_go/nodes.go:1611
↓ 1 callers
Method
file
(src *ast.File)
to_go/nodes.go:1583
↓ 1 callers
Function
filterSpec
(spec Spec, f Filter, export bool)
ast/filter.go:158
↓ 1 callers
Function
filterSpecList
(list []Spec, f Filter, export bool)
ast/filter.go:187
↓ 1 callers
Method
funcDecl
(d *ast.FuncDecl)
from_go/nodes.go:1536
↓ 1 callers
Method
funcDecl
(d *ast.FuncDecl)
to_go/nodes.go:1519
↓ 1 callers
Method
genDecl
(d *ast.GenDecl)
from_go/nodes.go:1394
↓ 1 callers
Method
genDecl
(d *ast.GenDecl)
to_go/nodes.go:1371
↓ 1 callers
Function
goFile
(f os.FileInfo)
cmd/from_go.go:90
↓ 1 callers
Function
goInitParserMode
()
cmd/from_go.go:31
↓ 1 callers
Function
goInitPrinterMode
()
cmd/from_go.go:39
↓ 1 callers
Function
goParse
parse parses src, which was read from filename, as a Go source file or statement list.
cmd/from_go.go:121
↓ 1 callers
Function
goWalkPath
(path string)
cmd/from_go.go:106
↓ 1 callers
Function
identListSize
(list []*ast.Ident, maxSize int)
from_go/nodes.go:348
↓ 1 callers
Function
identListSize
(list []*ast.Ident, maxSize int)
to_go/nodes.go:347
↓ 1 callers
Function
igoFile
(f os.FileInfo)
cmd/to_go.go:89
↓ 1 callers
Function
igoInit
()
cmd/to_go.go:32
↓ 1 callers
Function
igoParse
parse parses src, which was read from filename, as a Go source file or statement list.
cmd/to_go.go:121
↓ 1 callers
Function
igoWalkPath
(path string)
cmd/to_go.go:105
↓ 1 callers
Method
indentList
indentList reports whether an expression list would look better if it were indented wholesale (starting with the very first element, rather than start
from_go/nodes.go:1030
↓ 1 callers
Method
indentList
indentList reports whether an expression list would look better if it were indented wholesale (starting with the very first element, rather than start
to_go/nodes.go:1019
↓ 1 callers
Method
info
info returns the file name, line, and column number for a file offset.
token/position.go:267
↓ 1 callers
Method
init
(cfg *Config, fset *token.FileSet, nodeSizes map[ast.Node]int)
from_go/from_go.go:94
↓ 1 callers
Method
init
(cfg *Config, fset *token.FileSet, nodeSizes map[ast.Node]int)
to_go/to_go.go:91
↓ 1 callers
Method
interpretLineComment
(text []byte)
scanner/scanner.go:162
↓ 1 callers
Method
intersperseComments
intersperseComments consumes all comments that appear before the next token tok and prints it together with the buffered whitespace (i.e., the whitesp
from_go/from_go.go:574
↓ 1 callers
Method
intersperseComments
intersperseComments consumes all comments that appear before the next token tok and prints it together with the buffered whitespace (i.e., the whitesp
to_go/to_go.go:519
↓ 1 callers
Function
isDigit
(ch rune)
scanner/scanner.go:214
↓ 1 callers
Function
isLiteralType
isLiteralType returns true iff x is a legal composite literal type.
parser/parser.go:1472
↓ 1 callers
Method
isOneLineFieldList
(list []*ast.Field)
from_go/nodes.go:361
↓ 1 callers
Method
isOneLineFieldList
(list []*ast.Field)
to_go/nodes.go:360
↓ 1 callers
Function
isTypeName
(x ast.Expr)
from_go/nodes.go:949
↓ 1 callers
Function
isTypeName
(x ast.Expr)
to_go/nodes.go:938
↓ 1 callers
Function
isTypeSwitchGuard
(s ast.Stmt)
parser/parser.go:1975
↓ 1 callers
Function
isValidImport
(lit string)
parser/parser.go:2301
↓ 1 callers
Function
isWhitespace
(ch byte)
ast/ast.go:82
↓ 1 callers
Function
keepTypeColumn
---------------------------------------------------------------------------- Declarations The keepTypeColumn function determines if the type column of
from_go/nodes.go:1282
↓ 1 callers
Function
keepTypeColumn
---------------------------------------------------------------------------- Declarations The keepTypeColumn function determines if the type column of
to_go/nodes.go:1259
↓ 1 callers
Function
mayCombine
(prev token.Token, next byte)
from_go/from_go.go:669
↓ 1 callers
Function
mayCombine
(prev token.Token, next byte)
to_go/to_go.go:608
↓ 1 callers
Function
nameOf
nameOf returns the function (foo) or method name (foo.bar) for the given function declaration. If the AST is incorrect for the receiver, it assumes a
ast/filter.go:291
↓ 1 callers
Function
nodeList
nodeList returns the list of nodes of the AST n in source order.
ast/commentmap.go:58
↓ 1 callers
Method
openLabelScope
()
parser/parser.go:97
↓ 1 callers
Method
parseArrayType
()
parser/parser.go:626
↓ 1 callers
Method
parseBinaryExpr
If lhs is set and the result is an identifier, it is not resolved.
parser/parser.go:1656
← previous
next →
201–300 of 594, ranked by callers