Skip to content

Commit 7a5c487

Browse files
committed
analyzer: parse doc comments
1 parent d8f68c5 commit 7a5c487

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/analyzer/scanner.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ func (p *PackageScanner) appendFunc(fn *ast.FuncDecl, dest *SymbolIndex) {
7979
func (p *PackageScanner) Scan() (PackageSummary, error) {
8080
sum := NewPackageSummary()
8181
set := token.NewFileSet()
82-
packs, err := parser.ParseDir(set, p.path, nil, 0)
82+
packs, err := parser.ParseDir(set, p.path, nil, parser.ParseComments)
8383
if err != nil {
8484
return sum, err
8585
}

0 commit comments

Comments
 (0)