CFEclipse does not have this feature, in part because CFML is a dynamic language with reasonable complexity analysis.
You can use regular expression searches to get most of the time from you.
Function Definitions
To find the definition of a function, in most cases a search ...
(name="|ion )methodname
... enough and faster than a more complete form:
(<cffunction\s+name\s*=\s*['"]|\bfunction\s+)methodname
Function call
To find a function call, simply do:
methodname\s*\(
Although you may need to be more thorough, with:
['"]methodname['"]\s*\]\s*\(
... if notation notation was used.
You can also check cfinvoke usage:
<cfinvoke[^>]+?method\s*=\s*['"]methodname
Of course, none of these methods will detect if you have code:
<cfset meth = "methodname" /> <cfinvoke ... method="#meth#" />
... and no other form of dynamic method name.
If you really need to be thorough and find all instances, it is probably best to look only for the method name (or wrapped as \bmethodname\b ) and manually look through the code for any variables that use it.
Peter Boughton
source share