@Test public void testAssignmentHasSideEffects() throws Exception { assertFalse(SideEffectChecker.isSideEffectFree(new ExprStmt( new BinaryExpr( new VariableIdentifierExpr("v"), new IntConstantExpr("12"), BinOp.ASSIGN )), ShadingLanguageVersion.ESSL_310, ShaderKind.FRAGMENT)); }
public static boolean isSideEffectFree(Stmt stmt, ShadingLanguageVersion shadingLanguageVersion, ShaderKind shaderKind) { return isSideEffectFreeVisitor(stmt, shadingLanguageVersion, shaderKind); }
SideEffectChecker { public static boolean isSideEffectFree(Stmt stmt, ShadingLanguageVersion shadingLanguageVersion, ShaderKind shaderKind) { return isSideEffectFreeVisitor(stmt, shadingLanguageVersion, shaderKind); } }
SideEffectChecker { public static boolean isSideEffectFree(Stmt stmt, ShadingLanguageVersion shadingLanguageVersion, ShaderKind shaderKind) { return isSideEffectFreeVisitor(stmt, shadingLanguageVersion, shaderKind); }  }
SideEffectChecker { public static boolean isSideEffectFree(Stmt stmt, ShadingLanguageVersion shadingLanguageVersion, ShaderKind shaderKind) { return isSideEffectFreeVisitor(stmt, shadingLanguageVersion, shaderKind); }  static boolean isSideEffectFree(Stmt stmt, ShadingLanguageVersion shadingLanguageVersion,
                                         ShaderKind shaderKind); static boolean isSideEffectFree(Expr expr, ShadingLanguageVersion shadingLanguageVersion,
                                         ShaderKind shaderKind); }
SideEffectChecker { public static boolean isSideEffectFree(Stmt stmt, ShadingLanguageVersion shadingLanguageVersion, ShaderKind shaderKind) { return isSideEffectFreeVisitor(stmt, shadingLanguageVersion, shaderKind); }  static boolean isSideEffectFree(Stmt stmt, ShadingLanguageVersion shadingLanguageVersion,
                                         ShaderKind shaderKind); static boolean isSideEffectFree(Expr expr, ShadingLanguageVersion shadingLanguageVersion,
                                         ShaderKind shaderKind);  }