MCPcopy Create free account

hub / github.com/DAddYE/igo / functions

Functions594 in github.com/DAddYE/igo

↓ 2 callersMethodparseVarType
If the result is an identifier, it is not resolved.
parser/parser.go:781
↓ 2 callersMethodpop
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 callersMethodposition
(p Pos)
token/position.go:285
↓ 2 callersMethodscanEscape
(quote rune)
scanner/scanner.go:317
↓ 2 callersMethodscanNumber
(seenDecimalPoint bool)
scanner/scanner.go:244
↓ 2 callersFunctionsearchInts
----------------------------------------------------------------------------- Helper functions
token/position.go:443
↓ 2 callersMethodsetLineComment
(text string)
from_go/nodes.go:379
↓ 2 callersMethodsetLineComment
(text string)
to_go/nodes.go:378
↓ 2 callersMethodshortVarDecl
(decl *ast.AssignStmt, list []ast.Expr)
parser/parser.go:142
↓ 2 callersFunctionsortComments
sortComments sorts the list of comment groups in source order.
ast/commentmap.go:22
↓ 2 callersFunctionsortSpecs
(fset *token.FileSet, f *File, specs []Spec)
ast/import.go:91
↓ 2 callersFunctionstripParensAlways
(x ast.Expr)
from_go/nodes.go:985
↓ 2 callersFunctionstripParensAlways
(x ast.Expr)
to_go/nodes.go:974
↓ 2 callersMethodswitch4
(tok0, tok1 token.Token, ch2 rune, tok2, tok3 token.Token)
scanner/scanner.go:538
↓ 2 callersMethodtokPrec
()
parser/parser.go:1647
↓ 2 callersMethodtryResolve
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 callersFunctionunparen
If x is of the form (T), unparen returns unparen(T), otherwise it returns x.
parser/parser.go:1497
↓ 2 callersFunctionwalkIdentList
Helper functions for common node lists. They may be empty.
ast/walk.go:18
↓ 2 callersMethodwriteComment
(comment *ast.Comment, prefix string)
to_go/to_go.go:433
↓ 2 callersMethodwriteString
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 callersMethodAddFile
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 callersMethodAddLineInfo
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 callersMethodBase
Base returns the base offset of file f as registered with AddFile.
token/position.go:110
↓ 1 callersFunctionFprint
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 callersMethodFprint
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 callersMethodInit
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 callersMethodIsKeyword
IsKeyword returns true for tokens corresponding to keywords; it returns false otherwise.
token/token.go:316
↓ 1 callersMethodIsOperator
IsOperator returns true for tokens corresponding to operators and delimiters; it returns false otherwise.
token/token.go:311
↓ 1 callersMethodIsValid
IsValid returns true if the position is valid.
token/position.go:30
↓ 1 callersFunctionNewIdent
---------------------------------------------------------------------------- Convenience functions for Idents NewIdent creates a new Ident without pos
ast/ast.go:523
↓ 1 callersFunctionNewObj
NewObj creates a new object of a given kind and name.
ast/scope.go:87
↓ 1 callersFunctionNotNilFilter
NotNilFilter returns true for field values that are not nil; it returns false otherwise.
ast/print.go:22
↓ 1 callersFunctionParseFile
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 callersMethodScan
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 callersMethodText
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 callersMethodWrite
(data []byte)
from_go/from_go.go:977
↓ 1 callersMethodWrite
(data []byte)
to_go/to_go.go:924
↓ 1 callersMethodaddComment
(n Node, c *CommentGroup)
ast/commentmap.go:37
↓ 1 callersMethodalignFuncIndent
()
from_go/nodes.go:1061
↓ 1 callersMethodbinaryExpr
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 callersMethodbinaryExpr
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 callersMethodbodySize
bodySize is like nodeSize but it is specialized for *ast.BlockStmt's.
to_go/nodes.go:1450
↓ 1 callersMethodcloseLabelScope
()
parser/parser.go:102
↓ 1 callersFunctioncollapse
collapse indicates whether prev may be removed, leaving only next.
ast/import.go:79
↓ 1 callersMethodcommentsHaveNewline
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 callersMethodcommentsHaveNewline
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 callersMethodconsumeComment
Consume a comment and return it and the line on which it ends.
parser/parser.go:264
↓ 1 callersFunctioncutoff
(e *ast.BinaryExpr, depth int)
from_go/nodes.go:561
↓ 1 callersFunctioncutoff
(e *ast.BinaryExpr, depth int)
to_go/nodes.go:563
↓ 1 callersFunctiondeclToken
---------------------------------------------------------------------------- Files
from_go/nodes.go:1575
↓ 1 callersFunctiondeclToken
---------------------------------------------------------------------------- Files
to_go/nodes.go:1547
↓ 1 callersFunctionderef
If x is of the form *T, deref returns T, otherwise it returns x.
parser/parser.go:1489
↓ 1 callersFunctiondiffPrec
(expr ast.Expr, prec int)
from_go/nodes.go:578
↓ 1 callersFunctiondiffPrec
(expr ast.Expr, prec int)
to_go/nodes.go:580
↓ 1 callersFunctionfieldName
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 callersMethodfile
(src *ast.File)
from_go/nodes.go:1611
↓ 1 callersMethodfile
(src *ast.File)
to_go/nodes.go:1583
↓ 1 callersFunctionfilterSpec
(spec Spec, f Filter, export bool)
ast/filter.go:158
↓ 1 callersFunctionfilterSpecList
(list []Spec, f Filter, export bool)
ast/filter.go:187
↓ 1 callersMethodfuncDecl
(d *ast.FuncDecl)
from_go/nodes.go:1536
↓ 1 callersMethodfuncDecl
(d *ast.FuncDecl)
to_go/nodes.go:1519
↓ 1 callersMethodgenDecl
(d *ast.GenDecl)
from_go/nodes.go:1394
↓ 1 callersMethodgenDecl
(d *ast.GenDecl)
to_go/nodes.go:1371
↓ 1 callersFunctiongoFile
(f os.FileInfo)
cmd/from_go.go:90
↓ 1 callersFunctiongoInitParserMode
()
cmd/from_go.go:31
↓ 1 callersFunctiongoInitPrinterMode
()
cmd/from_go.go:39
↓ 1 callersFunctiongoParse
parse parses src, which was read from filename, as a Go source file or statement list.
cmd/from_go.go:121
↓ 1 callersFunctiongoWalkPath
(path string)
cmd/from_go.go:106
↓ 1 callersFunctionidentListSize
(list []*ast.Ident, maxSize int)
from_go/nodes.go:348
↓ 1 callersFunctionidentListSize
(list []*ast.Ident, maxSize int)
to_go/nodes.go:347
↓ 1 callersFunctionigoFile
(f os.FileInfo)
cmd/to_go.go:89
↓ 1 callersFunctionigoInit
()
cmd/to_go.go:32
↓ 1 callersFunctionigoParse
parse parses src, which was read from filename, as a Go source file or statement list.
cmd/to_go.go:121
↓ 1 callersFunctionigoWalkPath
(path string)
cmd/to_go.go:105
↓ 1 callersMethodindentList
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 callersMethodindentList
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 callersMethodinfo
info returns the file name, line, and column number for a file offset.
token/position.go:267
↓ 1 callersMethodinit
(cfg *Config, fset *token.FileSet, nodeSizes map[ast.Node]int)
from_go/from_go.go:94
↓ 1 callersMethodinit
(cfg *Config, fset *token.FileSet, nodeSizes map[ast.Node]int)
to_go/to_go.go:91
↓ 1 callersMethodinterpretLineComment
(text []byte)
scanner/scanner.go:162
↓ 1 callersMethodintersperseComments
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 callersMethodintersperseComments
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 callersFunctionisDigit
(ch rune)
scanner/scanner.go:214
↓ 1 callersFunctionisLiteralType
isLiteralType returns true iff x is a legal composite literal type.
parser/parser.go:1472
↓ 1 callersMethodisOneLineFieldList
(list []*ast.Field)
from_go/nodes.go:361
↓ 1 callersMethodisOneLineFieldList
(list []*ast.Field)
to_go/nodes.go:360
↓ 1 callersFunctionisTypeName
(x ast.Expr)
from_go/nodes.go:949
↓ 1 callersFunctionisTypeName
(x ast.Expr)
to_go/nodes.go:938
↓ 1 callersFunctionisTypeSwitchGuard
(s ast.Stmt)
parser/parser.go:1975
↓ 1 callersFunctionisValidImport
(lit string)
parser/parser.go:2301
↓ 1 callersFunctionisWhitespace
(ch byte)
ast/ast.go:82
↓ 1 callersFunctionkeepTypeColumn
---------------------------------------------------------------------------- Declarations The keepTypeColumn function determines if the type column of
from_go/nodes.go:1282
↓ 1 callersFunctionkeepTypeColumn
---------------------------------------------------------------------------- Declarations The keepTypeColumn function determines if the type column of
to_go/nodes.go:1259
↓ 1 callersFunctionmayCombine
(prev token.Token, next byte)
from_go/from_go.go:669
↓ 1 callersFunctionmayCombine
(prev token.Token, next byte)
to_go/to_go.go:608
↓ 1 callersFunctionnameOf
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 callersFunctionnodeList
nodeList returns the list of nodes of the AST n in source order.
ast/commentmap.go:58
↓ 1 callersMethodopenLabelScope
()
parser/parser.go:97
↓ 1 callersMethodparseArrayType
()
parser/parser.go:626
↓ 1 callersMethodparseBinaryExpr
If lhs is set and the result is an identifier, it is not resolved.
parser/parser.go:1656
← previousnext →201–300 of 594, ranked by callers