Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(46)  |  Call(30)  |  Derive(0)  |  Import(16)

        def buildNodeList(provider, nodes, source_ref, allow_none = False):
    if nodes is not None:
        result = []

        for node in nodes:
            if hasattr( node, "lineno" ):
                node_source_ref = source_ref.atLineNumber( node.lineno )
            else:
                node_source_ref = source_ref

            entry = buildNode( provider, node, node_source_ref, allow_none )

            if entry is not None:
                result.append( entry )

        return result
    else:
        return []
        


src/n/u/Nuitka-HEAD/nuitka/tree/ReformulationFunctionStatements.py   Nuitka(Download)
from nuitka.nodes.AssignNodes import StatementAssignmentVariable
 
from .Helpers import (
    makeStatementsSequenceFromStatement,
    makeDictCreationOrConstant,
 
    decorators = buildNodeList(
        provider   = provider,
        nodes      = reversed(node.decorator_list),
        source_ref = source_ref
    )
 
    defaults = buildNodeList(
        provider   = provider,

src/n/u/Nuitka-0.5.1.5/nuitka/tree/ReformulationFunctionStatements.py   Nuitka(Download)
from nuitka.nodes.AssignNodes import StatementAssignmentVariable
 
from .Helpers import (
    makeStatementsSequenceFromStatement,
    makeDictCreationOrConstant,
 
    decorators = buildNodeList(
        provider   = provider,
        nodes      = reversed( node.decorator_list ),
        source_ref = source_ref
    )
 
    defaults = buildNodeList(
        provider   = provider,

src/n/u/Nuitka-HEAD/nuitka/tree/ReformulationContractionExpressions.py   Nuitka(Download)
from .ReformulationBooleanExpressions import buildAndNode
 
from .Helpers import (
    makeStatementsSequenceFromStatement,
    mergeStatements,
 
        conditions = buildNodeList(
            provider   = function_body,
            nodes      = qual.ifs,
            source_ref = source_ref

src/n/u/Nuitka-0.5.1.5/nuitka/tree/ReformulationContractionExpressions.py   Nuitka(Download)
from .ReformulationBooleanExpressions import buildAndNode
 
from .Helpers import (
    makeStatementsSequenceFromStatement,
    mergeStatements,
 
        conditions = buildNodeList(
            provider   = function_body,
            nodes      = qual.ifs,
            source_ref = source_ref

src/n/u/Nuitka-HEAD/nuitka/tree/ReformulationPrintStatements.py   Nuitka(Download)
from nuitka.nodes.TryNodes import StatementTryFinally
 
from .Helpers import (
    makeStatementsSequenceFromStatement,
    buildNodeList,
 
    values = buildNodeList(
        provider   = provider,
        nodes      = node.values,
        source_ref = source_ref

src/n/u/Nuitka-HEAD/nuitka/tree/Building.py   Nuitka(Download)
 
# Some helpers.
from .Helpers import (
    makeStatementsSequenceOrStatement,
    makeSequenceCreationOrConstant,
def buildSequenceCreationNode(provider, node, source_ref):
    return makeSequenceCreationOrConstant(
        sequence_kind = getKind(node).upper(),
        elements      = buildNodeList(provider, node.elts, source_ref),
        source_ref    = source_ref
def buildDictionaryNode(provider, node, source_ref):
    return makeDictCreationOrConstant(
        keys       = buildNodeList(provider, node.keys, source_ref),
        values     = buildNodeList(provider, node.values, source_ref),
        lazy_order = False,

src/n/u/Nuitka-0.5.1.5/nuitka/tree/Building.py   Nuitka(Download)
 
# Some helpers.
from .Helpers import (
    makeStatementsSequenceOrStatement,
    makeSequenceCreationOrConstant,
def buildSequenceCreationNode(provider, node, source_ref):
    return makeSequenceCreationOrConstant(
        sequence_kind = getKind( node ).upper(),
        elements      = buildNodeList( provider, node.elts, source_ref ),
        source_ref    = source_ref
def buildDictionaryNode(provider, node, source_ref):
    return makeDictCreationOrConstant(
        keys       = buildNodeList( provider, node.keys, source_ref ),
        values     = buildNodeList( provider, node.values, source_ref ),
        lazy_order = False,

src/n/u/Nuitka-HEAD/nuitka/tree/ReformulationBooleanExpressions.py   Nuitka(Download)
)
 
from .Helpers import (
    makeStatementsSequence,
    buildNodeList,
        return buildOrNode(
            provider   = provider,
            values     = buildNodeList(provider, node.values, source_ref),
            source_ref = source_ref
        )
        return buildAndNode(
            provider   = provider,
            values     = buildNodeList(provider, node.values, source_ref),
            source_ref = source_ref
        )

src/n/u/Nuitka-HEAD/nuitka/tree/ReformulationClasses.py   Nuitka(Download)
from nuitka.nodes.ParameterSpecs import ParameterSpec
 
from .Helpers import (
    makeStatementsSequenceFromStatement,
    makeSequenceCreationOrConstant,
 
    for decorator in buildNodeList(
            provider,
            reversed( node.decorator_list ),
            source_ref
                sequence_kind = "tuple",
                elements      = buildNodeList(
                    provider, node.bases, source_ref
                ),
                source_ref    = source_ref
                sequence_kind = "tuple",
                elements      = buildNodeList(
                    provider, node.bases, source_ref
                ),
                source_ref    = source_ref
 
    for decorator in buildNodeList(
            provider,
            reversed( node.decorator_list ),
            source_ref

src/n/u/Nuitka-HEAD/nuitka/tree/ReformulationCallExpressions.py   Nuitka(Download)
    ExpressionFunctionRef
)
from .Helpers import (
    makeSequenceCreationOrConstant,
    makeDictCreationOrConstant,
def buildCallNode(provider, node, source_ref):
    positional_args = buildNodeList(provider, node.args, source_ref)
 
    # Only the values of keyword pairs have a real source ref, and those only
    # really matter, so that makes sense.

  1 | 2  Next