Свойство | Type | Description | |
---|---|---|---|
ModuleTable | |||
options | object>.Dictionary |
Méthode | 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 |
Méthode | 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 | |
Résultat | System |
public AnalyzerImpl ( ILogger logger ) : System | ||
logger | ILogger | |
Résultat | System |
public CreateBinding ( string id, Node node, DataType type, BindingKind kind ) : Binding | ||
id | string | |
node | Node | |
type | DataType | |
kind | BindingKind | |
Résultat | Binding |
public ExtendPath ( string path, string name ) : string | ||
path | string | |
name | string | |
Résultat | string |
public FormatTime ( System.TimeSpan span ) : string | ||
span | System.TimeSpan | |
Résultat | string |
public GetDiagnosticsForFile ( string file ) : List |
||
file | string | |
Résultat | List |
public GetModuleQname ( string file ) : string | ||
file | string | |
Résultat | string |
public LoadFileRecursive ( string fullname ) : void | ||
fullname | string | |
Résultat | void |
public LoadModule ( List |
||
name | List |
|
state | ||
Résultat | DataType |
public Percent ( long num, long total ) : string | ||
num | long | |
total | long | |
Résultat | string |
public RegisterBinding ( Binding b ) : void | ||
b | Binding | |
Résultat | void |
public addFileErr ( string file, int begin, int end, string msg ) : void | ||
file | string | |
begin | int | |
end | int | |
msg | string | |
Résultat | void |
public addRef ( AttributeAccess attr, DataType targetType, ISet |
||
attr | AttributeAccess | |
targetType | DataType | |
bs | ISet |
|
Résultat | void |
public countFileRecursive ( string fullname ) : int | ||
fullname | string | |
Résultat | int |
public getAstForFile ( string file ) : |
||
file | string | |
Résultat |
public getBuiltinModule ( string qname ) : ModuleType | ||
qname | string | |
Résultat | ModuleType |
public getReferences ( ) : List |
||
Résultat | List |
public locateModule ( string headName ) : string | ||
headName | string | first module name segment |
Résultat | string |
public putProblem ( Node loc, string msg ) : void | ||
loc | Node | |
msg | string | |
Résultat | void |
public putProblem ( string file, int begin, int end, string msg ) : void | ||
file | string | |
begin | int | |
end | int | |
msg | string | |
Résultat | void |
public putRef ( Node node, Binding b ) : void | ||
node | Node | |
b | Binding | |
Résultat | void |
public putRef ( Node node, ICollection |
||
node | Node | |
bs | ICollection |
|
Résultat | void |