public bool StaticInclude(int level, string relativeSourcePath, RuntimeTypeHandle includee, InclusionTypes inclusionType)
{
ApplicationConfiguration app_config = Configuration.Application;
var included_full_path =
//PhpSourceFile source_file = new PhpSourceFile(
// app_config.Compiler.SourceRoot,
new FullPath(app_config.Compiler.SourceRoot, new RelativePath((sbyte)level, relativeSourcePath));
//);
if (scripts.ContainsKey(included_full_path.ToString()))
{
// the script has been included => returns whether it should be included again:
return !InclusionTypesEnum.IsOnceInclusion(inclusionType);
}
else
{
// the script has not been included yet:
scripts.Add(included_full_path.ToString(), new ScriptInfo(Type.GetTypeFromHandle(includee)));
// the script should be included:
return true;
}
}