MCPcopy Create free account
hub / github.com/DAddYE/igo / ParseFile

Function ParseFile

parser/interface.go:84–117  ·  view source on GitHub ↗

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 filename of the source file, or via the src parameter. If src != nil, ParseFile parses the source from src and the filename is only used when recording po

(fset *token.FileSet, filename string, src interface{}, mode Mode)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

ParseDirFunction · 0.85

Calls 5

initMethod · 0.95
parseFileMethod · 0.95
readSourceFunction · 0.85
SortMethod · 0.80
ErrMethod · 0.80

Tested by

no test coverage detected