Skip to main content

module lang::php::analysis::names::AnalysisNames

rascal-0.40.17
php-analysis-0.2.4

Usage

import lang::php::analysis::names::AnalysisNames;

Source code

http://github.com/cwi-swat/php-analysis/blob/main/src/main/rascal/lang/php/analysis/names/AnalysisNames.rsc

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