Inputs is one of the source-code metrics Understand computes across 17+ languages — browse them in the GUI, export and track them, or script them with the Python API.
Inputs
API ID: CountInputAlso Known As: FANIN (Infomational fan-in)
Languages: C#, C++, Fortran, Java
Targets: Functions, Subprograms
Number of calling subprograms plus global variables read.
The number of inputs a function uses plus the number of unique subprograms calling the function. Inputs include parameters and global variables that are used in the function, so Functions calledby + Parameters read + Global Variables read. Recursive function calls and local variables that are not class static variables are not included. Of the two general approaches to calculating FANIN (informational versus structural) ours is the informational approach.
Also known as FANIN (Infomational fan-in).
- C#: Method
- C++: Function
- Fortran: Function, Program, Subroutine
- Java: Method