예제 #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);
        }
예제 #5
0
        // 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);
        }
예제 #10
0
 public override IEnumerable <ICodeRequest> GetCodeRequests()
 {
     return(PyStatementBase.GetCodeRequests(PyArray, Index));
 }
예제 #11
0
 public override IEnumerable <ICodeRequest> GetCodeRequests()
 {
     return(PyStatementBase.GetCodeRequests(Condition, WhenTrue, WhenFalse));
 }