C# Class PHPAnalysis.Analysis.AST.IncludeResolver

Inheritance: IIncludeResolver
Mostra file Open project: jtvn/Eir-CTLLTL Class Usage Examples

Public Methods

Method Description
IncludeResolver ( ICollection projectFiles ) : System
TryResolveInclude ( XmlNode node, PHPAnalysis.Data.File &path ) : bool

Matching last string in include expression against all files and select the first match. This is incredibly basic and not necessarily correct. The path is ignored and there could be multiple files with the same name.

Private Methods

Method Description
TryGetFile ( string fileName, PHPAnalysis.Data.File &file ) : bool

Method Details

IncludeResolver() public method

public IncludeResolver ( ICollection projectFiles ) : System
projectFiles ICollection
return System

TryResolveInclude() public method

Matching last string in include expression against all files and select the first match. This is incredibly basic and not necessarily correct. The path is ignored and there could be multiple files with the same name.
public TryResolveInclude ( XmlNode node, PHPAnalysis.Data.File &path ) : bool
node System.Xml.XmlNode
path PHPAnalysis.Data.File
return bool