Property | Type | Description | |
---|---|---|---|
ModuleTable | |||
options | object>.Dictionary |
Method | Description | |
---|---|---|
AddUncalled ( FunType cl ) : void | ||
Analyze ( string path ) : void |
Main entry to the analyzer
|
|
AnalyzerImpl ( IFileSystem fs, ILogger logger, object>.Dictionary |
||
AnalyzerImpl ( ILogger logger ) : System | ||
ApplyUncalled ( ) : void | ||
CreateBinding ( string id, Node node, DataType type, BindingKind kind ) : Binding | ||
ExtendPath ( string path, string name ) : string | ||
Finish ( ) : void | ||
FormatTime ( System.TimeSpan span ) : string | ||
GetAllBindings ( ) : List |
||
GetDiagnosticsForFile ( string file ) : List |
||
GetModuleBindings ( ) : IEnumerable |
||
GetModuleQname ( string file ) : string | ||
LoadFile ( string path ) : DataType | ||
LoadFileRecursive ( string fullname ) : void |
Load all Python source files recursively if the given fullname is a directory; otherwise just load a file. Looks at file extension to determine whether to load a given file.
|
|
LoadModule ( List |
||
MakeQname ( List |
||
ModuleName ( string path ) : string |
Given an absolute {@code path} to a file (not a directory), returns the module name for the file. If the file is an __init__.py, returns the last component of the file's parent directory, else returns the filename without path or extension.
|
|
Percent ( long num, long total ) : string | ||
RegisterBinding ( Binding b ) : void | ||
RemoveUncalled ( FunType f ) : void | ||
ToString ( ) : string | ||
addFileErr ( string file, int begin, int end, string msg ) : void | ||
addPath ( string p ) : void | ||
addPaths ( List |
||
addRef ( AttributeAccess attr, DataType targetType, ISet |
||
banner ( string msg ) : string | ||
close ( ) : void | ||
countFileRecursive ( string fullname ) : int |
Count number of .py files
|
|
getAnalysisSummary ( ) : string | ||
getAstForFile ( string file ) : |
Returns the syntax tree for {@code file}.
|
|
getBuiltinModule ( string qname ) : ModuleType | ||
getLoadPath ( ) : List |
||
getLoadedFiles ( ) : List |
||
getReferences ( ) : List |
||
hasOption ( string option ) : bool | ||
inImportStack ( object f ) : bool | ||
inStack ( Exp f ) : bool | ||
locateModule ( string headName ) : string |
Find the path that contains modname. Used to find the starting point of locating a qname.
|
|
msg ( string m ) : void | ||
msg_ ( string m ) : void | ||
popImportStack ( object f ) : void | ||
popStack ( Exp f ) : void | ||
pushImportStack ( object f ) : void | ||
pushStack ( Exp f ) : void | ||
putProblem ( Node loc, string msg ) : void | ||
putProblem ( string file, int begin, int end, string msg ) : void | ||
putRef ( Node node, Binding b ) : void | ||
putRef ( Node node, ICollection |
||
setCWD ( string cd ) : void | ||
setOption ( string option ) : void | ||
setPath ( List |
Method | Description | |
---|---|---|
AddPythonPath ( ) : void | ||
CopyModels ( ) : void | ||
CreateCacheDirectory ( ) : void | ||
GetAstCache ( ) : |
||
GetCachedModule ( string file ) : ModuleType | ||
getFileErrs ( string file, Dictionary |
||
parseAndResolve ( string file ) : DataType |
public AnalyzerImpl ( IFileSystem fs, ILogger logger, object>.Dictionary |
||
fs | IFileSystem | |
logger | ILogger | |
options | object>.Dictionary | |
startTime | System.DateTime | |
return | System |
public AnalyzerImpl ( ILogger logger ) : System | ||
logger | ILogger | |
return | System |
public CreateBinding ( string id, Node node, DataType type, BindingKind kind ) : Binding | ||
id | string | |
node | Node | |
type | DataType | |
kind | BindingKind | |
return | Binding |
public ExtendPath ( string path, string name ) : string | ||
path | string | |
name | string | |
return | string |
public FormatTime ( System.TimeSpan span ) : string | ||
span | System.TimeSpan | |
return | string |
public GetDiagnosticsForFile ( string file ) : List |
||
file | string | |
return | List |
public GetModuleQname ( string file ) : string | ||
file | string | |
return | string |
public LoadFileRecursive ( string fullname ) : void | ||
fullname | string | |
return | void |
public LoadModule ( List |
||
name | List |
|
state | ||
return | DataType |
public Percent ( long num, long total ) : string | ||
num | long | |
total | long | |
return | string |
public addFileErr ( string file, int begin, int end, string msg ) : void | ||
file | string | |
begin | int | |
end | int | |
msg | string | |
return | void |
public addRef ( AttributeAccess attr, DataType targetType, ISet |
||
attr | AttributeAccess | |
targetType | DataType | |
bs | ISet |
|
return | void |
public countFileRecursive ( string fullname ) : int | ||
fullname | string | |
return | int |
public getAstForFile ( string file ) : |
||
file | string | |
return |
public getBuiltinModule ( string qname ) : ModuleType | ||
qname | string | |
return | ModuleType |
public locateModule ( string headName ) : string | ||
headName | string | first module name segment |
return | string |
public putProblem ( Node loc, string msg ) : void | ||
loc | Node | |
msg | string | |
return | void |
public putProblem ( string file, int begin, int end, string msg ) : void | ||
file | string | |
begin | int | |
end | int | |
msg | string | |
return | void |
public putRef ( Node node, Binding b ) : void | ||
node | Node | |
b | Binding | |
return | void |
public putRef ( Node node, ICollection |
||
node | Node | |
bs | ICollection |
|
return | void |