Метод | Описание | |
---|---|---|
AstCache ( Analyzer analyzer, IFileSystem fs, ILogger logger, string cacheDir ) : Pytocs.Syntax | ||
Clear ( ) : void |
Clears the memory cache.
|
|
clearDiskCache ( ) : bool |
Removes all serialized ASTs from the on-disk cache.
|
|
close ( ) : void | ||
getAST ( string path ) : |
Returns the syntax tree for path. May find and/or create a cached copy in the mem cache or the disk cache. Absolute path to a source file.
|
|
getCachePath ( string sourcePath ) : string |
Each source file's AST is saved in an object file named for the MD5 checksum of the source file. All that is needed is the MD5, but the file's base name is included for ease of debugging.
|
Метод | Описание | |
---|---|---|
GetSerializedModule ( string sourcePath ) : |
||
deserialize ( string sourcePath ) : |
public AstCache ( Analyzer analyzer, IFileSystem fs, ILogger logger, string cacheDir ) : Pytocs.Syntax | ||
analyzer | Analyzer | |
fs | IFileSystem | |
logger | ILogger | |
cacheDir | string | |
Результат | Pytocs.Syntax |
public getAST ( string path ) : |
||
path | string | |
Результат |
public getCachePath ( string sourcePath ) : string | ||
sourcePath | string | |
Результат | string |