MCPcopy Create free account

hub / github.com/d4l3k/go-pry / functions

Functions211 in github.com/d4l3k/go-pry

↓ 86 callersMethodError
()
pry/helpers.go:16
↓ 73 callersMethodInterpretString
InterpretString interprets a string of go code and returns the result.
pry/interpreter.go:191
↓ 73 callersFunctionNewScope
NewScope creates a new initialized scope
pry/interpreter.go:69
↓ 37 callersMethodSet
Set walks the scope and sets a value in a parent scope if it exists, else current.
pry/interpreter.go:104
↓ 16 callersMethodLen
Len returns amount of records in history
pry/io_default.go:69
↓ 13 callersMethodNewChild
NewChild creates a scope under the existing scope.
pry/interpreter.go:149
↓ 12 callersMethodClose
()
pry/pry.go:36
↓ 11 callersFunctionPry
Pry does nothing. It only exists so running code without go-pry doesn't throw an error.
pry/pry.go:17
↓ 11 callersMethodString
String returns the contents of the unread portion of the buffer as a string. If the Buffer is a nil pointer, it returns "<nil>".
pry/safebuffer/safebuffer.go:27
↓ 10 callersMethodGet
(string)
pry/suggestions.go:49
↓ 9 callersMethodWrite
(buf []byte)
pry/tty_js.go:44
↓ 8 callersMethodGet
Get walks the scope and finds the value of interest
pry/interpreter.go:91
↓ 8 callersFunctionhighlightWords
(s string, words []string, color, edges string)
pry/highlighter.go:58
↓ 7 callersMethodhandleStatement
(vars []string, s ast.Stmt)
generate/generate.go:341
↓ 6 callersMethodDebug
Debug prints debug statements if debug is true.
generate/generate.go:38
↓ 5 callersMethodExecuteGoCmd
ExecuteGoCmd runs the 'go' command with certain parameters.
generate/generate.go:45
↓ 5 callersMethodInterpret
Interpret interprets an ast.Node and returns the value.
pry/interpreter.go:210
↓ 5 callersMethodLoad
Load unmarshal history file into history's records
pry/io_default.go:41
↓ 5 callersMethodhandleExpr
(vars []string, v ast.Expr)
generate/generate.go:405
↓ 4 callersFunctionHighlight
Highlight highlights a string of go code for outputting to bash.
pry/highlighter.go:17
↓ 4 callersMethodInjectPry
InjectPry walks the scope and replaces pry.Pry with pry.Apply(pry.Scope{...}).
generate/generate.go:60
↓ 4 callersFunctionNewGenerator
(debug bool)
generate/generate.go:28
↓ 4 callersFunctionType
Type returns the reflect type of the passed object.
pry/type.go:6
↓ 4 callersFunctionfileExists
(filePath string)
generate/generate_test.go:44
↓ 3 callersMethodAdd
Add appends record into history's records
pry/io_default.go:72
↓ 3 callersMethodGenerateFile
GenerateFile generates a injected file.
generate/generate.go:256
↓ 3 callersMethodGetPointer
GetPointer walks the scope and finds the pointer to the value of interest
pry/interpreter.go:79
↓ 3 callersMethodOutput
()
pry/pry_test.go:166
↓ 3 callersMethodRender
Render renders an ast node
pry/interpreter.go:1253
↓ 3 callersMethodRevertPry
RevertPry reverts the changes made by InjectPry.
generate/generate.go:298
↓ 3 callersMethodextractFields
(vars []string, l []*ast.Field)
generate/generate.go:334
↓ 3 callersFunctionsucceedsSoon
(t testing.TB, f func() error)
pry/pry_test.go:177
↓ 3 callersFunctiontestPryApply
(t testing.TB)
pry/pry_test.go:111
↓ 2 callersFunctionComputeBinaryOp
ComputeBinaryOp executes the corresponding binary operation (+, -, etc) on two interfaces.
pry/pseudo_generics.go:51
↓ 2 callersMethodSave
Save saves marshaled history's records into file
pry/io_default.go:56
↓ 2 callersMethodTypeCheck
TypeCheck does type checking and returns the info object
pry/interpreter.go:1262
↓ 2 callersFunctionapply
( scope *Scope, out io.Writer, tty genericTTY, filePath, filePathRaw string, lineNum int, )
pry/pry.go:39
↓ 2 callersMethodextractVariables
(vars []string, l []ast.Stmt)
generate/generate.go:327
↓ 2 callersFunctiongenerateBundle
(w http.ResponseWriter, r *http.Request, packages string)
playground/server/server.go:49
↓ 2 callersMethodgetValue
(id ast.Expr)
pry/interpreter.go:1043
↓ 2 callersMethodhandleIdents
(vars []string, idents []*ast.Ident)
generate/generate.go:398
↓ 2 callersFunctioninterfaceToInt
(i interface{})
pry/interpreter_test.go:581
↓ 2 callersFunctionnormalizePackages
(packages string)
playground/server/server.go:36
↓ 1 callersMethodCheckStatement
CheckStatement checks if a statement is type safe
pry/interpreter.go:1203
↓ 1 callersMethodComputeUnaryOp
ComputeUnaryOp computes the corresponding unary (+x, -x) operation on an interface.
pry/pseudo_generics.go:734
↓ 1 callersMethodConfigureTypes
ConfigureTypes configures the scope type checker
pry/interpreter.go:1163
↓ 1 callersFunctionDeAssign
DeAssign takes a *_ASSIGN token and returns the corresponding * token.
pry/pseudo_generics.go:21
↓ 1 callersMethodDefer
(d *Defer)
pry/interpreter.go:58
↓ 1 callersMethodExecuteFunc
(funExpr ast.Expr, args []interface{})
pry/interpreter.go:1093
↓ 1 callersMethodGenerateAndExecuteFile
GenerateAndExecuteFile generates and executes a temp file with the given imports
generate/generate.go:275
↓ 1 callersMethodGetExports
GetExports returns a string of gocode that represents the exports (constants/functions) of an ast.Package.
generate/generate.go:173
↓ 1 callersMethodImportFrom
(path, dir string, mode types.ImportMode)
pry/importer_default.go:20
↓ 1 callersMethodKeys
()
pry/suggestions.go:45
↓ 1 callersFunctionNewHistory
NewHistory constructs browserHistory instance
pry/io_js.go:43
↓ 1 callersMethodParseString
ParseString parses go code into the ast nodes.
pry/interpreter.go:161
↓ 1 callersMethodReadRune
()
pry/pry.go:34
↓ 1 callersMethodSize
()
pry/pry.go:35
↓ 1 callersFunctionStringToType
StringToType returns the reflect.Type corresponding to the type string provided. Ex: StringToType("int")
pry/interpreter.go:1283
↓ 1 callersMethodSuggestionsGoCode
SuggestionsGoCode is a suggestion engine that uses gocode for autocomplete.
pry/autocomplete.go:18
↓ 1 callersMethodSuggestionsPry
(line string, index int)
pry/suggestions.go:12
↓ 1 callersFunctionValuesToInterfaces
ValuesToInterfaces converts a slice of []reflect.Value to []interface{}
pry/interpreter.go:1314
↓ 1 callersFunctionX
Note: This file has some gibberish to test for highlighting and other edge cases. * Block Quote */
example/file/file.go:15
↓ 1 callersFunctiona
(b int)
example/func-args/func-args.go:5
↓ 1 callersFunctiondisplayFilePosition
( out io.Writer, filePathRaw, filePath string, lineNum int, )
pry/pry.go:178
↓ 1 callersFunctiondisplaySuggestions
displaySuggestions renders the live autocomplete from GoCode.
pry/pry.go:214
↓ 1 callersFunctionfilterVars
(vars []string)
generate/generate.go:318
↓ 1 callersFunctionget
(v interface{}, key string)
pry/suggestions.go:52
↓ 1 callersFunctiongetImporter
()
pry/importer_js.go:21
↓ 1 callersMethodhandleBlockStmt
(vars []string, stmt *ast.BlockStmt)
generate/generate.go:393
↓ 1 callersMethodhandleForStmt
(vars []string, stmt *ast.ForStmt)
generate/generate.go:387
↓ 1 callersMethodhandleIfStmt
(vars []string, stmt *ast.IfStmt)
generate/generate.go:374
↓ 1 callersMethodhandleRangeStmt
(vars []string, stmt *ast.RangeStmt)
generate/generate.go:380
↓ 1 callersFunctionkeys
(v interface{})
pry/suggestions.go:79
↓ 1 callersFunctionmakeTestTTY
()
pry/pry_test.go:84
↓ 1 callersFunctionnewWASMTTY
()
pry/tty_js.go:13
↓ 1 callersFunctionopenTTY
()
pry/tty_js.go:35
↓ 1 callersMethodparseDir
()
pry/importer_js.go:11
↓ 1 callersFunctionpkgHash
(pkgs []string)
playground/server/server.go:31
↓ 1 callersFunctionprying
()
example/goroutines/goroutines.go:9
↓ 1 callersFunctionreadFile
(path string)
pry/io_js.go:13
↓ 1 callersFunctionrun
()
main.go:33
↓ 1 callersFunctionrun
()
pry-build-corpus/main.go:26
↓ 1 callersFunctionrun
()
playground/genmeta/genmeta.go:22
↓ 1 callersFunctionrun
()
playground/server/server.go:98
MethodAdd
Add appends record into history's records
pry/io_js.go:81
FunctionAppend
Append is a runtime replacement for the append function
pry/helpers.go:24
FunctionApply
Apply drops into a pry shell in the location required.
pry/pry.go:21
MethodB
()
pry/interpreter_test.go:350
FunctionClose
Close is a runtime replacement for the "close" function.
pry/helpers.go:89
MethodClose
()
pry/tty_js.go:61
MethodClose
()
pry/pry_test.go:99
MethodClose
()
pry/pry_test.go:170
FunctionFuzz
Fuzz is used for go-fuzz testing.
pry/fuzz.go:6
MethodGet
(key string)
pry/package.go:17
MethodImport
(path string)
pry/importer_default.go:17
MethodImport
(path string)
pry/importer.go:17
FunctionInternalSetImports
(raw string)
pry/importer_js.go:30
MethodKeys
()
pry/package.go:9
MethodKeys
Keys returns all keys in scope
pry/interpreter.go:135
FunctionLen
Len is a runtime replacement for the len function
pry/helpers.go:95
next →1–100 of 211, ranked by callers