nodecount

command
v0.0.0-...-a3f0206 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 10, 2024 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Overview

The nodecount program illustrates the use of packages.Load to print the frequency of occurrence of each type of syntax node among the selected packages.

Example usage:

$ nodecount github.com/goki/go-tools/... std

A typical distribution is 40% identifiers, 10% literals, 8% selectors, and 6% calls; around 3% each of BinaryExpr, BlockStmt, AssignStmt, Field, and Comment; and the rest accounting for 20%.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL