MCPcopy Create free account

hub / github.com/DAddYE/igo / functions

Functions594 in github.com/DAddYE/igo

↓ 170 callersMethodPos
()
ast/ast.go:38
↓ 163 callersMethodprint
print prints a list of "items" (roughly corresponding to syntactic tokens, but also including whitespace and formatting information). It is the only p
from_go/from_go.go:698
↓ 163 callersMethodprint
print prints a list of "items" (roughly corresponding to syntactic tokens, but also including whitespace and formatting information). It is the only p
to_go/to_go.go:637
↓ 75 callersMethodEnd
position of first character belonging to the node
ast/ast.go:39
↓ 64 callersMethodexpect
(tok token.Token)
parser/parser.go:383
↓ 56 callersFunctiontrace
(p *parser, msg string)
parser/parser.go:229
↓ 56 callersFunctionun
Usage pattern: defer un(trace(p, "..."))
parser/parser.go:236
↓ 55 callersMethodIsValid
IsValid returns true if the position is valid.
token/position.go:83
↓ 54 callersMethodnext
Advance to the next non-comment token. In the process, collect any comment groups encountered, and remember the last lead and and line comments. A le
parser/parser.go:307
↓ 43 callersMethodexpr
(x ast.Expr)
from_go/nodes.go:900
↓ 43 callersMethodnext
byte order mark, only permitted as very first character Read the next Unicode char into s.ch. s.ch < 0 means end-of-file.
scanner/scanner.go:73
↓ 42 callersMethodexpr
(x ast.Expr)
to_go/nodes.go:882
↓ 33 callersMethodlineFor
(pos token.Pos)
from_go/from_go.go:153
↓ 32 callersMethodlineFor
(pos token.Pos)
to_go/to_go.go:151
↓ 29 callersMethodprintf
printf is a convenience wrapper that takes care of print errors.
ast/print.go:125
↓ 24 callersMethodPosition
Position returns the Position value for the given file position p; p must be a Pos value in that file or NoPos.
token/position.go:295
↓ 23 callersMethoderrorExpected
(pos token.Pos, msg string)
parser/parser.go:365
↓ 23 callersMethodexpectSemi
()
parser/parser.go:403
↓ 17 callersMethodresolve
(x ast.Expr)
parser/parser.go:207
↓ 16 callersMethodLen
()
ast/commentmap.go:16
↓ 16 callersMethodsetComment
setComment sets g as the next comment if g != nil and if node comments are enabled - this mode is used when printing source code fragments such as exp
from_go/nodes.go:67
↓ 16 callersMethodsetComment
setComment sets g as the next comment if g != nil and if node comments are enabled - this mode is used when printing source code fragments such as exp
to_go/nodes.go:66
↓ 15 callersMethodPrecedence
Precedence returns the operator precedence of the binary operator op. If op is not a binary operator, the result is LowestPrecedence.
token/token.go:267
↓ 15 callersMethoderror
(offs int, msg string)
scanner/scanner.go:153
↓ 14 callersMethodparseIdent
---------------------------------------------------------------------------- Identifiers
parser/parser.go:506
↓ 13 callersMethodString
()
ast/ast.go:538
↓ 13 callersMethodlinebreak
Formatting issues: - better comment formatting for /*-style comments at the end of a line (e.g. a declaration) when the comment spans multiple lines;
from_go/nodes.go:44
↓ 13 callersMethodlinebreak
Formatting issues: - better comment formatting for /*-style comments at the end of a line (e.g. a declaration) when the comment spans multiple lines;
to_go/nodes.go:43
↓ 13 callersMethodposFor
(pos token.Pos)
to_go/to_go.go:146
↓ 12 callersMethodcheckExpr
checkExpr checks that x is an expression (and not a type).
parser/parser.go:1427
↓ 12 callersMethodcloseScope
()
parser/parser.go:93
↓ 12 callersMethodexpr0
(x ast.Expr, depth int)
from_go/nodes.go:896
↓ 12 callersMethodexpr0
(x ast.Expr, depth int)
to_go/nodes.go:878
↓ 12 callersMethodexprList
Print a list of expressions. If the list spans multiple source lines, the original line breaks are respected between expressions. TODO(gri) Consider
from_go/nodes.go:123
↓ 12 callersMethodisIndent
()
parser/parser.go:138
↓ 11 callersMethoderror
(pos token.Pos, msg string)
parser/parser.go:346
↓ 11 callersMethodexprList
Print a list of expressions. If the list spans multiple source lines, the original line breaks are respected between expressions. TODO(gri) Consider
to_go/nodes.go:122
↓ 11 callersMethodopenScope
---------------------------------------------------------------------------- Scoping support
parser/parser.go:89
↓ 11 callersMethodposFor
(pos token.Pos)
from_go/from_go.go:148
↓ 10 callersMethodparseType
---------------------------------------------------------------------------- Types
parser/parser.go:589
↓ 9 callersMethoddeclare
(decl, data interface{}, scope *ast.Scope, kind ast.ObjKind, idents ...*ast.Ident)
parser/parser.go:117
↓ 9 callersMethodparseRhs
()
parser/parser.go:1693
↓ 8 callersFunctionassert
(cond bool, msg string)
parser/parser.go:435
↓ 8 callersMethodblock
block prints an *ast.BlockStmt; it always spans at least two lines.
from_go/nodes.go:944
↓ 8 callersMethodblock
block prints an *ast.BlockStmt; it always spans at least two lines.
to_go/nodes.go:920
↓ 8 callersMethodparseSimpleStmt
parseSimpleStmt returns true as 2nd result if it parsed the assignment of a range clause (with mode == rangeOk). The returned statement is an assignme
parser/parser.go:1723
↓ 8 callersMethodswitch2
Helper functions for scanning multi-byte tokens such as >> += >>= . Different routines recognize different length tok_i based on matches of ch_i. If a
scanner/scanner.go:518
↓ 8 callersMethodwriteByte
writeByte writes ch n times to p.output and updates p.pos.
from_go/from_go.go:188
↓ 7 callersMethodLine
Line returns the line number for the given file position p; p must be a Pos value in that file or NoPos.
token/position.go:257
↓ 7 callersMethodSort
Sort sorts an ErrorList. *Error entries are sorted by position, other errors are sorted by error message, and before any *Error entry.
scanner/errors.go:75
↓ 7 callersMethodinternalError
(msg ...interface{})
from_go/from_go.go:140
↓ 7 callersMethodscanMantissa
(base int)
scanner/scanner.go:238
↓ 7 callersFunctionwalkExprList
(v Visitor, list []Expr)
ast/walk.go:24
↓ 6 callersMethodLookup
Lookup returns the object with the given name if it is found in scope s, otherwise it returns nil. Outer scopes are ignored.
ast/scope.go:34
↓ 6 callersMethodinternalError
(msg ...interface{})
to_go/to_go.go:138
↓ 6 callersMethodwriteByte
writeByte writes ch n times to p.output and updates p.pos.
to_go/to_go.go:187
↓ 5 callersMethodError
Error implements the error interface.
scanner/errors.go:25
↓ 5 callersMethodName
Name returns the file name of file f as registered with AddFile.
token/position.go:105
↓ 5 callersFunctionWalk
TODO(gri): Investigate if providing a closure to Walk leads to simpler use (and may help eliminate Inspect in turn). Walk traverses an AST in depth-fi
ast/walk.go:51
↓ 5 callersMethodcommentBefore
commentBefore returns true iff the current comment group occurs before the next position in the source code and printing it does not introduce implici
from_go/from_go.go:827
↓ 5 callersMethodcommentBefore
commentBefore returns true iff the current comment group occurs before the next position in the source code and printing it does not introduce implici
to_go/to_go.go:762
↓ 5 callersFunctionfilterType
(typ Expr, f Filter, export bool)
ast/filter.go:126
↓ 5 callersMethodflush
flush prints any pending comments and whitespace occurring textually before the position of the next token tok. The flush result indicates if a newlin
to_go/to_go.go:771
↓ 5 callersMethodisMultiLine
(n ast.Node)
from_go/nodes.go:383
↓ 5 callersMethodisMultiLine
(n ast.Node)
to_go/nodes.go:382
↓ 5 callersMethodparseBlockStmt
()
parser/parser.go:1140
↓ 5 callersMethodparseExpr
If lhs is set and the result is an identifier, it is not resolved. The result may be a type or even a raw type ([...]int). Callers must check the resu
parser/parser.go:1685
↓ 5 callersMethodprintTrace
---------------------------------------------------------------------------- Parsing support
parser/parser.go:214
↓ 5 callersMethodresetSpace
()
from_go/from_go.go:964
↓ 5 callersMethodresetSpace
()
to_go/to_go.go:911
↓ 5 callersMethodstmt
(stmt ast.Stmt, nextIsRBrace bool)
from_go/nodes.go:1072
↓ 5 callersMethodstmt
(stmt ast.Stmt, nextIsRBrace bool)
to_go/nodes.go:1050
↓ 5 callersMethodwriteWhitespace
whiteWhitespace writes the first n whitespace entries.
from_go/from_go.go:609
↓ 5 callersMethodwriteWhitespace
whiteWhitespace writes the first n whitespace entries.
to_go/to_go.go:551
↓ 4 callersMethodString
String returns the string corresponding to the token tok. For operators, delimiters, and keywords the string is the actual token character sequence (e
token/token.go:240
↓ 4 callersMethodWrite
(data []byte)
ast/print.go:86
↓ 4 callersMethodexpr1
(expr ast.Expr, prec1, depth int)
from_go/nodes.go:674
↓ 4 callersMethodexpr1
(expr ast.Expr, prec1, depth int)
to_go/nodes.go:676
↓ 4 callersMethodflush
flush prints any pending comments and whitespace occurring textually before the position of the next token tok. The flush result indicates if a newlin
from_go/from_go.go:836
↓ 4 callersMethodidentList
If indent is set, a multi-line identifier list is indented after the first linebreak encountered.
from_go/nodes.go:103
↓ 4 callersMethodidentList
If indent is set, a multi-line identifier list is indented after the first linebreak encountered.
to_go/nodes.go:102
↓ 4 callersFunctionimportName
(s Spec)
ast/import.go:62
↓ 4 callersFunctionimportPath
(s Spec)
ast/import.go:54
↓ 4 callersMethodnodeSize
nodeSize determines the size of n in chars after formatting. The result is <= maxSize if the node fits on one line with at most maxSize chars and the
from_go/nodes.go:1438
↓ 4 callersMethodnodeSize
nodeSize determines the size of n in chars after formatting. The result is <= maxSize if the node fits on one line with at most maxSize chars and the
to_go/nodes.go:1417
↓ 4 callersMethodparseRhsList
()
parser/parser.go:578
↓ 4 callersMethodparseRhsOrType
()
parser/parser.go:1701
↓ 4 callersMethodparseSignature
(scope *ast.Scope)
parser/parser.go:899
↓ 4 callersMethodparseStmtList
---------------------------------------------------------------------------- Blocks
parser/parser.go:1081
↓ 4 callersMethodsignature
(params, result *ast.FieldList)
from_go/nodes.go:329
↓ 4 callersMethodstmtList
---------------------------------------------------------------------------- Statements Print the statement list indented, but without a newline after
from_go/nodes.go:911
↓ 4 callersMethodstmtList
---------------------------------------------------------------------------- Statements Print the statement list indented, but without a newline after
to_go/nodes.go:893
↓ 4 callersMethodswitch3
(tok0, tok1 token.Token, ch2 rune, tok2 token.Token)
scanner/scanner.go:526
↓ 4 callersFunctionsyncStmt
syncStmt advances to the next statement. Used for synchronization after an error.
parser/parser.go:444
↓ 4 callersMethodtryIdentOrType
If the result is an identifier, it is not resolved.
parser/parser.go:1039
↓ 3 callersMethodAdd
Add adds an Error with given position and error message to an ErrorList.
scanner/errors.go:40
↓ 3 callersMethodErr
Err returns an error equivalent to this error list. If the list is empty, Err returns nil.
scanner/errors.go:107
↓ 3 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
to_go/to_go.go:1074
↓ 3 callersMethodInsert
Insert attempts to insert a named object obj into the scope s. If the scope already contains an object alt with the same name, Insert leaves the scope
ast/scope.go:43
↓ 3 callersFunctionIsExported
IsExported reports whether name is an exported Go symbol (that is, whether it begins with an upper-case letter).
ast/ast.go:528
next →1–100 of 594, ranked by callers