MCPcopy Create free account

hub / github.com/deferpanic/goweave / functions

Functions114 in github.com/deferpanic/goweave

↓ 42 callersMethodwriteOut
writeOut writes nlines to path
weave/file.go:69
↓ 15 callersMethodwriteAtLine
writeAtLine inserts writes to fname lntxt @ iline
weave/file.go:79
↓ 11 callersMethodapplyExecutionJP
applyExecutionJP applies any advice for execution joinpoints
weave/transform.go:299
↓ 10 callersMethodapplyCallAdvice
applyCallAdvice applies call advice before/after a call around advice is currently hacked in via applyAroundAdvice
weave/transform.go:68
↓ 9 callersFunctionNewWeave
NewWeave instantiates and returns a new aop
weave/weave.go:43
↓ 8 callersMethodwriteMissingImports
writeMissingImports writes body && any missing imports to fp
weave/imports.go:80
↓ 6 callersFunctionexecShellCmd
(cmd string)
weave/build.go:32
↓ 6 callersMethodparseAspectFile
parseAspectFile loads an individual file containing aspects there be tigers here subject to immediate and dramatic change
weave/aspect.go:136
↓ 6 callersFunctionprintWLines
(stuff string)
weave/weave_test.go:1357
↓ 4 callersFunctionapply
apply replaces each AST field x in val with f(x), returning val. To avoid extra conversions, f operates on the reflect.Value form.
weave/replace.go:99
↓ 3 callersMethodapplyGetJP
applyGetJP applies any advice for get joinpoints
weave/get.go:11
↓ 3 callersMethodapplySetJP
applySetJP applies any advice for set joinpoints
weave/set.go:11
↓ 3 callersFunctioncontainArgs
containArgs ensures the function signature is 'correct' the following is left un-implemented and needs to be implemented FIXME 1) simple types - no pk
weave/ast.go:49
↓ 3 callersFunctionisIdent
stolen from http://golang.org/src/cmd/fix/fix.go
weave/ast.go:27
↓ 3 callersMethodreWorkImports
reads file && de-dupes imports
weave/imports.go:17
↓ 3 callersMethodrootPkg
rootPkg returns the root package of a go build this is needed to determine whether or not sub-pkg imports need to be re-written - which is basically a
weave/build.go:133
↓ 3 callersFunctionset
set is a wrapper for x.Set(y); it protects the caller from panics if x cannot be changed to y.
weave/replace.go:72
↓ 3 callersFunctionsetBase
rootPkg returns the root package of a go build this is needed to determine whether or not sub-pkg imports need to be re-written - which is basically a
weave/build.go:140
↓ 2 callersMethodParseAST
Parse parses the ast for this file and returns a ParsedFile
weave/weave.go:133
↓ 2 callersMethodaddMissingImports
addMissingImports adds any imports from advice that was found
weave/imports.go:124
↓ 2 callersMethodapplyAroundAdvice
applyAroundAdvice uses code from gofmt to wrap any after advice essentially this is the same stuff you could do w/the cmdline tool, gofmt FIXME - mv
weave/transform.go:246
↓ 2 callersMethodapplyDeclarationJP
applyDeclarationJP applies any advice for set joinpoints currently expects a channel type need some extra help here to be agnostic maybe some helper f
weave/declaration.go:30
↓ 2 callersMethodapplyGlobalAdvice
applyGlobalAdvice applies any global scoped advice if advice has already been placed in this pkg than we skip no support for sub-pkgs yet FIXME
weave/transform.go:16
↓ 2 callersMethodapplyWithinJP
applyWithinJP applies any advice for within joinpoints right now this expects both 'before && after'
weave/within.go:12
↓ 2 callersMethodbinName
binName returns the expected bin name
weave/build.go:48
↓ 2 callersMethodbuildDir
buildDir determines what the root build dir is
weave/build.go:28
↓ 2 callersFunctionfileLines
returns a slice of lines from file path
weave/file.go:47
↓ 2 callersFunctionformatAdvice
formatAdvice subsitutes any reserved keywords currently supported is mName mName is the currently called method name
weave/within.go:152
↓ 2 callersFunctionisWildcard
(s string)
weave/replace.go:134
↓ 2 callersFunctionparseExpr
parseExpr returns an ast expression from the source s stolen from http://golang.org/src/cmd/fix/fix.go
weave/ast.go:34
↓ 2 callersMethodprocessGoRoutines
processGoRoutines is in the process of being DEPRECATED it only provides regex support for go before/after advice once we refactor to AST replacing th
weave/go_routines.go:34
↓ 2 callersMethodpruneImports
pruneImports returns a set of import strings de-duped from the ast
weave/imports.go:91
↓ 2 callersFunctionsetDef
set def extracts the joinpoint from a pointcut definition
weave/pointcut.go:66
↓ 2 callersFunctionsubst
subst returns a copy of pattern with values from m substituted in place of wildcards and pos used as the position of tokens from the pattern. if m ==
weave/replace.go:145
↓ 2 callersFunctiontmpLocation
()
weave/build.go:65
↓ 1 callersMethodRun
Run preps, grabs advice, transforms the src, and builds the code
weave/weave.go:56
↓ 1 callersMethodbuild
build does the actual compilation right nowe we piggy back off of 6g/8g
weave/build.go:75
↓ 1 callersFunctionbuildDir
buildDir determines what the root build dir is
weave/build.go:42
↓ 1 callersMethodcontainsAfter
containsAfter returns true if the body has after advice
weave/aspect.go:66
↓ 1 callersMethoddeDupeImports
deDupeImports de-dupes imports this is txt processing - not from the ast - FIXME
weave/imports.go:32
↓ 1 callersFunctionfileAsStr
fileAsStr reads path file and returns it as a string
weave/file.go:37
↓ 1 callersMethodfindAspects
findAspects finds all aspects for this project
weave/weave.go:217
↓ 1 callersMethodfindGoFiles
findGoFiles recursively finds all go files in a project
weave/weave.go:198
↓ 1 callersFunctiongrabMethodName
HACK HACK HACK
weave/within.go:100
↓ 1 callersMethodinsertInWithin
insertInWithin places before/after advice around a statement
weave/within.go:117
↓ 1 callersFunctioninthere
inthere returns true if p is part of ray
weave/imports.go:113
↓ 1 callersMethodisDeclaration
()
weave/pointcut.go:57
↓ 1 callersMethodisGet
()
weave/pointcut.go:41
↓ 1 callersFunctionisPkgDot
stolen from http://golang.org/src/cmd/fix/fix.go
weave/ast.go:11
↓ 1 callersMethodisSet
()
weave/pointcut.go:49
↓ 1 callersMethodisWithin
()
weave/pointcut.go:33
↓ 1 callersMethoditerateBodyStatements
iterateBodyStatements places within advice when a joinpoint is found
weave/within.go:88
↓ 1 callersMethodloadAspects
grab_aspects looks for an aspect file for each file this seems lame and contrary to what we want... I'd go as far as to say that we want this to be cr
weave/aspect.go:22
↓ 1 callersFunctionmatch
match returns true if pattern matches val, recording wildcard submatches in m. If m == nil, match checks whether pattern == val.
weave/replace.go:206
↓ 1 callersFunctionmultiLineGo
returns true if this is a multi-line go routine
weave/go_routines.go:11
↓ 1 callersMethodparseAdvice
parseAdvice returns advice about this aspect
weave/aspect.go:80
↓ 1 callersMethodparseImports
parseImports returns an array of imports for the corresponding advice
weave/aspect.go:44
↓ 1 callersMethodparsePointCut
parsePointCut parses out a pointcut from an aspect
weave/pointcut.go:97
↓ 1 callersFunctionpointCutMatch
pointCutMatch returns an aspect if there is a pointcut match on this line or returns an empty aspect
weave/weave.go:163
↓ 1 callersMethodprep
prep prepares any tmp. build dirs
weave/build.go:95
↓ 1 callersMethodreWriteFile
reWriteFile rewrites curfile with out && adds any missing imports
weave/file.go:12
↓ 1 callersFunctionrewriteFile2
(pattern, replace ast.Expr, p *ast.File)
weave/replace.go:44
↓ 1 callersFunctionrewriteImport
rewriteImport is intended to rewrite a sub pkg of the base pkg to a relative path since we for now cp it to a diff. workspace
weave/imports.go:148
↓ 1 callersMethodrightBraceCnt
rightBraceCnt returns the number of right braces in a string
weave/aspect.go:75
↓ 1 callersFunctionsingleLineGo
returns true if this is a single line go routine
weave/go_routines.go:20
↓ 1 callersMethodtransform
transform reads line by line over each src file and inserts advice where appropriate only inserts before/advice after
weave/weave.go:180
↓ 1 callersMethodwhichGo
whichgo determines provides the full go path to the current go build tool
weave/build.go:56
FunctionTestAfter
(t *testing.T)
weave/aspect_test.go:59
FunctionTestApplyAroundAdvice
(t *testing.T)
weave/weave_test.go:11
FunctionTestApplyCallAdvice
(t *testing.T)
weave/weave_test.go:725
FunctionTestApplyCallAdvicePkgDot
(t *testing.T)
weave/weave_test.go:788
FunctionTestApplyCallAsArg
(t *testing.T)
weave/weave_test.go:980
FunctionTestApplyCallAsArgComma
(t *testing.T)
weave/weave_test.go:1037
FunctionTestApplyCallAsArgComma2
(t *testing.T)
weave/weave_test.go:1093
FunctionTestApplyDeclarationJP
(t *testing.T)
weave/declaration_test.go:8
FunctionTestApplyExecutionJP
(t *testing.T)
weave/weave_test.go:158
FunctionTestApplyExecutionJPAfter
(t *testing.T)
weave/weave_test.go:357
FunctionTestApplyExecutionJPAfterwReturn
(t *testing.T)
weave/weave_test.go:416
FunctionTestApplyExecutionJPAround
(t *testing.T)
weave/weave_test.go:477
FunctionTestApplyExecutionJPBefore
(t *testing.T)
weave/weave_test.go:298
FunctionTestApplyExecutionJPInnerFors
(t *testing.T)
weave/weave_test.go:538
FunctionTestApplyExecutionJPMain
(t *testing.T)
weave/weave_test.go:247
FunctionTestApplyExecutionJPRetBool
(t *testing.T)
weave/weave_test.go:658
FunctionTestApplyExecutionJPRetStr
(t *testing.T)
weave/weave_test.go:599
FunctionTestApplyGetJP
(t *testing.T)
weave/get_test.go:8
FunctionTestApplyGlobalAdvice
(t *testing.T)
weave/weave_test.go:881
FunctionTestApplySetJP
(t *testing.T)
weave/set_test.go:8
FunctionTestApplySimpleGetJP
(t *testing.T)
weave/get_test.go:65
FunctionTestApplySimpleSetJP
(t *testing.T)
weave/set_test.go:66
FunctionTestApplyWithinJP
(t *testing.T)
weave/within_test.go:8
FunctionTestAspectScope
(t *testing.T)
weave/aspect_test.go:201
FunctionTestBefore
(t *testing.T)
weave/aspect_test.go:7
FunctionTestCallBlah
(t *testing.T)
weave/weave_test.go:1215
FunctionTestCallBlah2
(t *testing.T)
weave/weave_test.go:1285
FunctionTestCallInCompositeLit
(t *testing.T)
weave/weave_test.go:1149
FunctionTestContainArgs
(t *testing.T)
weave/weave_test.go:238
FunctionTestGoTx
(t *testing.T)
weave/weave_test.go:63
FunctionTestNoImports
(t *testing.T)
weave/aspect_test.go:154
FunctionTestParseAspectFile
(t *testing.T)
weave/aspect_test.go:103
FunctionTestPkgRewrite
(t *testing.T)
weave/weave_test.go:855
next →1–100 of 114, ranked by callers