示例#1
0
        public override IEnumerable <ICodeRequest> GetCodeRequests()
        {
            var a = PyStatementBase.GetCodeRequests <IPyValue>(Arguments);
            var b = PyStatementBase.GetCodeRequests(Expression);

            return(a.Union(b).ToArray());
        }
示例#2
0
        public IEnumerable <ICodeRequest> GetCodeRequests()
        {
            var a = PyStatementBase.GetCodeRequests(Arguments);
            var b = PyStatementBase.GetCodeRequests(Statements);

            return(a.Union(b));
        }
示例#3
0
        public IEnumerable <ICodeRequest> GetCodeRequests()
        {
            var a = PyStatementBase.GetCodeRequests(Name, BaseTypeName);
            var b = PyStatementBase.GetCodeRequests(Fields);
            var c = PyStatementBase.GetCodeRequests(Methods);

            return(a.Union(b).Union(c));
        }
        public override IEnumerable <ICodeRequest> GetCodeRequests()
        {
            var a = PyStatementBase.GetCodeRequests(TargetObject).ToList();

            if (IncludeModule != null)
            {
                a.Add(new DependsOnModuleCodeRequest(IncludeModule, string.Format("instance field {0}", this)));
            }
            return(a);
        }
        // Public Methods 

        public override IEnumerable <ICodeRequest> GetCodeRequests()
        {
            var requests = PyStatementBase.GetCodeRequests(Arguments.Select(i => i.Expression)).ToList();

            if (!_className.IsEmpty && !DontIncludeClass && _className.EmitName != PyQualifiedName.ClassnameSelf)
            {
                requests.Add(new ClassCodeRequest(_className));
            }
            if (TargetObject != null)
            {
                requests.AddRange(TargetObject.GetCodeRequests());
            }
            return(requests);
        }
示例#6
0
 public IEnumerable <ICodeRequest> GetCodeRequests()
 {
     return(PyStatementBase.GetCodeRequests(ConstValue));
 }
 public override IEnumerable <ICodeRequest> GetCodeRequests()
 {
     return(PyStatementBase.GetCodeRequests(Operand));
 }
 public override IEnumerable <ICodeRequest> GetCodeRequests()
 {
     return(PyStatementBase.GetCodeRequests(Left, Right));
 }
示例#9
0
        // Public Methods 

        public override IEnumerable <ICodeRequest> GetCodeRequests()
        {
            var a = PyStatementBase.GetCodeRequests(Left, Right).ToArray();

            return(a);
        }
 public override IEnumerable <ICodeRequest> GetCodeRequests()
 {
     return(PyStatementBase.GetCodeRequests(PyArray, Index));
 }
示例#11
0
 public override IEnumerable <ICodeRequest> GetCodeRequests()
 {
     return(PyStatementBase.GetCodeRequests(Condition, WhenTrue, WhenFalse));
 }