nodecount

command
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2023 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 golang.org/x/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