[ClavaAst] Generalizes method ClavaLog.warning() that receives a
ClavaNode
package pt.up.fe.specs.clava;
-import pt.up.fe.specs.clava.ast.pragma.Pragma;
import pt.up.fe.specs.util.SpecsLogs;
import pt.up.fe.specs.util.lazy.Lazy;
import pt.up.fe.specs.util.logging.SpecsLogger;
@@ -39,8 +38,8 @@ public class ClavaLog extends SpecsLogger {
logger().msgInfo(message);
}
- public static void warning(Pragma pragma, String message) {
- warning(message + " (" + pragma.getLocation() + ")");
+ public static void warning(ClavaNode node, String message) {
+ warning(message + " (" + node.getLocation() + ")");
// LoggingUtils.msgInfo("[Warning] " + message + " (" + pragma.getLocation() + ")");
}
