File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
tests/plugins/custom/analyzer Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ class InitChecker extends PluginPhase with StandardPlugin {
56
56
57
57
private def checkDef (tree : Tree )(implicit ctx : Context ): Tree = {
58
58
if (tree.symbol.defTree.isEmpty)
59
- ctx .error(" cannot get tree for " + tree.show, tree.sourcePos)
59
+ report .error(" cannot get tree for " + tree.show, tree.sourcePos)
60
60
tree
61
61
}
62
62
@@ -73,17 +73,17 @@ class InitChecker extends PluginPhase with StandardPlugin {
73
73
74
74
if (enclosingPkg == helloPkgSym) { // source code
75
75
checkDef(tree)
76
- ctx .warning(" tree: " + tree.symbol.defTree.show)
76
+ report .warning(" tree: " + tree.symbol.defTree.show)
77
77
}
78
78
else if (enclosingPkg == libPkgSym) { // tasty from library
79
79
checkDef(tree)
80
80
// check that all sub-definitions have trees set properly
81
81
// make sure that are no cycles in the code
82
82
transformAllDeep(tree.symbol.defTree)
83
- ctx .warning(" tree: " + tree.symbol.defTree.show)
83
+ report .warning(" tree: " + tree.symbol.defTree.show)
84
84
}
85
85
else {
86
- ctx .warning(tree.symbol.toString + " is neither in lib nor hello, owner = " + enclosingPkg, tree.sourcePos)
86
+ report .warning(tree.symbol.toString + " is neither in lib nor hello, owner = " + enclosingPkg, tree.sourcePos)
87
87
}
88
88
tree
89
89
}
You can’t perform that action at this time.
0 commit comments