Example #1
0
def GetPass():
    from nsl import Pass
    def IsValid (visitor):
        return visitor.valid
    return Pass.MakePassFromVisitor(ValidateSwizzleMaskVisitor(),
                                    'validate-swizzle-mask',
                                    validator = IsValid)
Example #2
0
def GetPass():
    from nsl import Pass

    def IsValid(visitor):
        return visitor.valid

    return Pass.MakePassFromVisitor(ValidateArrayOutOfBoundsAccessVisitor(),
                                    'validate-array-out-of-bounds-access',
                                    validator=IsValid)
Example #3
0
def GetPass():
    from nsl import Pass

    def IsValid(visitor):
        return visitor.valid

    return Pass.MakePassFromVisitor(ValidateFlowStatementVisitor(),
                                    'validate-flow-statements',
                                    validator=IsValid)
Example #4
0
def GetPass():
    from nsl import Pass

    def IsValid(visitor):
        return visitor.valid

    return Pass.MakePassFromVisitor(ValidateArrayAccessTypeVisitor(),
                                    'validate-array-access-type',
                                    validator=IsValid)
Example #5
0
def GetPass():
    from nsl import Pass

    def IsValid(visitor):
        return visitor.valid

    return Pass.MakePassFromVisitor(ValidateVariableNamesVisitor(),
                                    'validate-variable-names',
                                    validator=IsValid)
def GetPass():
    from nsl import Pass

    def IsValid(visitor):
        return True

    return Pass.MakePassFromVisitor(RewriteAssignEqualVisitor(),
                                    'rewrite-assign-equal',
                                    validator=IsValid)
Example #7
0
def GetPass():
    from nsl import Pass

    def IsValid(visitor):
        return visitor.valid

    return Pass.MakePassFromVisitor(ValidateExportedFunctionsVisitor(),
                                    'validate-exported-functions',
                                    validator=IsValid)
Example #8
0
def GetPass():
    from nsl import Pass
    def IsValid (visitor):
        return True
    return Pass.MakePassFromVisitor(AddImplicitCastVisitor (),
        'add-implicit-casts', validator = IsValid)