def GetPass(): from nsl import Pass def IsValid (visitor): return visitor.valid return Pass.MakePassFromVisitor(ValidateSwizzleMaskVisitor(), 'validate-swizzle-mask', validator = IsValid)
def GetPass(): from nsl import Pass def IsValid(visitor): return visitor.valid return Pass.MakePassFromVisitor(ValidateArrayOutOfBoundsAccessVisitor(), 'validate-array-out-of-bounds-access', validator=IsValid)
def GetPass(): from nsl import Pass def IsValid(visitor): return visitor.valid return Pass.MakePassFromVisitor(ValidateFlowStatementVisitor(), 'validate-flow-statements', validator=IsValid)
def GetPass(): from nsl import Pass def IsValid(visitor): return visitor.valid return Pass.MakePassFromVisitor(ValidateArrayAccessTypeVisitor(), 'validate-array-access-type', validator=IsValid)
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)
def GetPass(): from nsl import Pass def IsValid(visitor): return visitor.valid return Pass.MakePassFromVisitor(ValidateExportedFunctionsVisitor(), 'validate-exported-functions', validator=IsValid)
def GetPass(): from nsl import Pass def IsValid (visitor): return True return Pass.MakePassFromVisitor(AddImplicitCastVisitor (), 'add-implicit-casts', validator = IsValid)