메소드 | 설명 | |
---|---|---|
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 getCachePath ( string sourcePath ) : string | ||
sourcePath | string | |
리턴 | string |