~ubuntu-branches/debian/experimental/nuitka/experimental

« back to all changes in this revision

Viewing changes to nuitka/nodes/FunctionNodes.py

  • Committer: Package Import Robot
  • Author(s): Kay Hayen
  • Date: 2015-04-06 17:20:44 UTC
  • mfrom: (1.1.37)
  • Revision ID: package-import@ubuntu.com-20150406172044-grhy9sk7g0whu2ag
Tags: 0.5.12+ds-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
 
29
29
"""
30
30
 
31
 
from nuitka import Utils, Variables
 
31
from nuitka import Variables
32
32
from nuitka.__past__ import iterItems
 
33
from nuitka.utils import Utils
33
34
 
34
35
from .IndicatorMixins import (
35
36
    MarkGeneratorIndicator,
74
75
 
75
76
    def __init__(self, provider, name, doc, parameters, source_ref,
76
77
                 is_class = False):
 
78
        # These got too many details to cover, pylint: disable=R0915
 
79
 
77
80
        if is_class:
78
81
            code_prefix = "class"
79
82
        else:
174
177
            *self.parameters.getVariables()
175
178
        )
176
179
 
 
180
        self.constraint_collection = None
 
181
 
177
182
 
178
183
    def getDetails(self):
179
184
        return {
609
614
 
610
615
        self.function_body = function_body
611
616
 
612
 
        # SSA trace based information about the function.
613
 
        self.collection = None
614
 
 
615
617
    def getDetails(self):
616
618
        return {
617
619
            "function" : self.function_body.getCodeName()
639
641
        from nuitka.optimizations.TraceCollections import \
640
642
            ConstraintCollectionFunction
641
643
 
642
 
        collection = ConstraintCollectionFunction(
 
644
        function_body.constraint_collection = ConstraintCollectionFunction(
643
645
            parent        = constraint_collection,
644
646
            function_body = function_body
645
647
        )
646
 
        function_body.collection = collection
647
648
 
648
649
        # TODO: Function collection may now know something.
649
650
        return self, None, None