/// <summary>
 ///     Tworzy instancję obiektu
 ///     <param name="fieldName"></param>
 ///     <param name="targetObject"></param>
 ///     <param name="includeModule"></param>
 /// </summary>
 public PyInstanceFieldAccessExpression(string fieldName, IPyValue targetObject,
                                        PyCodeModuleName includeModule)
 {
     FieldName     = fieldName;
     TargetObject  = targetObject;
     IncludeModule = includeModule;
 }
 /// <summary>
 ///     Tworzy instancję obiektu
 ///     <param name="definedConstName"></param>
 ///     <param name="moduleName"></param>
 /// </summary>
 public PyDefinedConstExpression(string definedConstName, PyCodeModuleName moduleName)
 {
     if (definedConstName == "Py_EOL" && moduleName != null)
     {
         throw new Exception("Py_EOL is built in");
     }
     DefinedConstName = definedConstName;
     _moduleName      = moduleName;
 }
Example #3
0
 public PyModuleExpression(PyCodeModuleName moduleName, string why)
 {
     ModuleName = moduleName;
     Why        = why;
 }