module lang::php::analysis::names::AnalysisNames
rascal-0.40.17
php-analysis-0.2.4
Usage
import lang::php::analysis::names::AnalysisNames;
Source code
Dependencies
import lang::php::ast::AbstractSyntax;
import lang::php::pp::PrettyPrinter;
import IO;
import Exception;
data AnalysisName
data AnalysisName
= nameSet(set[AnalysisName] possibleNames)
| fieldName(str fieldName)
| varName(str varName)
| compoundName(list[AnalysisName] parts)
| indexed()
| unknownVar()
| unknownField()
;
function knownNames
set[AnalysisName] knownNames(AnalysisName an)
function computeName
AnalysisName computeName(NameOrExpr e)
AnalysisName computeName(Expr e)
Compute the