summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorDawid Pakuła2013-11-18 12:06:01 (EST)
committer Gerrit Code Review @ Eclipse.org2013-11-19 13:23:38 (EST)
commit83287f72a63a0eee254210e78accc45e071a18f3 (patch)
treefcbfd06e67bc7bdc7d045897e513a635f722fdb1
parent3f8a9fc4cffe3482d3bcd4da29a2348ed72c29a4 (diff)
downloadorg.eclipse.pdt-83287f72a63a0eee254210e78accc45e071a18f3.zip
org.eclipse.pdt-83287f72a63a0eee254210e78accc45e071a18f3.tar.gz
org.eclipse.pdt-83287f72a63a0eee254210e78accc45e071a18f3.tar.bz2
Bug 421994 - ParserBuildParticipant not set IBuildContext.ATTR_MODULE_DECLARATION on full buildrefs/changes/14/18514/2
Bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=421994 Change-Id: Ia3d0b2b1d480de0082c404b7bb1e0c74ea494626 Signed-off-by: Dawid Pakuła <zulus@w3des.net>
-rw-r--r--plugins/org.eclipse.php.core/src/org/eclipse/php/internal/core/builder/ParserBuildParticipantFactory.java11
1 files changed, 8 insertions, 3 deletions
diff --git a/plugins/org.eclipse.php.core/src/org/eclipse/php/internal/core/builder/ParserBuildParticipantFactory.java b/plugins/org.eclipse.php.core/src/org/eclipse/php/internal/core/builder/ParserBuildParticipantFactory.java
index 9ea05db..7e5de5d 100644
--- a/plugins/org.eclipse.php.core/src/org/eclipse/php/internal/core/builder/ParserBuildParticipantFactory.java
+++ b/plugins/org.eclipse.php.core/src/org/eclipse/php/internal/core/builder/ParserBuildParticipantFactory.java
@@ -21,8 +21,8 @@ import org.eclipse.dltk.compiler.env.IModuleSource;
import org.eclipse.dltk.compiler.problem.ProblemCollector;
import org.eclipse.dltk.core.DLTKLanguageManager;
import org.eclipse.dltk.core.IScriptProject;
-import org.eclipse.dltk.core.SourceParserUtil;
import org.eclipse.dltk.core.ISourceModuleInfoCache.ISourceModuleInfo;
+import org.eclipse.dltk.core.SourceParserUtil;
import org.eclipse.dltk.core.builder.AbstractBuildParticipantType;
import org.eclipse.dltk.core.builder.IBuildContext;
import org.eclipse.dltk.core.builder.IBuildParticipant;
@@ -88,13 +88,18 @@ public class ParserBuildParticipantFactory extends AbstractBuildParticipantType
// create problem collector
final ProblemCollector problemCollector = new ProblemCollector();
// parse
- moduleDeclaration = parser.parse((IModuleSource) context
- .getSourceModule(), problemCollector);
+ moduleDeclaration = parser
+ .parse((IModuleSource) context.getSourceModule(),
+ problemCollector);
// put result to the cache
SourceParserUtil.putModuleToCache(cacheEntry, moduleDeclaration,
problemCollector);
// report errors to the build context
problemCollector.copyTo(context.getProblemReporter());
+
+ // push AST to build context
+ context.set(IBuildContext.ATTR_MODULE_DECLARATION,
+ moduleDeclaration);
}
}