591: setting positions for parameters even when running in NB editor, to avoid problems in javac's Flow.

This commit is contained in:
Jan Lahoda committed 2014-01-02 23:43:52 +01:00
1 parent fa1d765445
commit 9760b35197
1 file changed
+1 -1
@@ -149,7 +149,7 @@ public class JavacHandlerUtil {
if (source == null) generatedNodes.remove(node);
else generatedNodes.put(node, new WeakReference<JCTree>(source));
}
if (source != null && !inNetbeansEditor(context)) node.pos = source.pos;
if (source != null && (!inNetbeansEditor(context) || (node instanceof JCVariableDecl && (((JCVariableDecl) node).mods.flags & Flags.PARAMETER) != 0))) node.pos = source.pos;
return node;
}