aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Core/IPreprocessor.cs
diff options
context:
space:
mode:
authorRob Mensching <rob@firegiant.com>2019-03-01 16:45:55 -0800
committerRob Mensching <rob@robmensching.com>2019-03-01 16:51:02 -0800
commit615bc202834ac45a9a107e5fccd900081a4abf74 (patch)
treeceebc5b3652f0274bee745701a3538439b0275d1 /src/WixToolset.Core/IPreprocessor.cs
parent009f11ca9cf8674b40b74888aae90bcd4817828b (diff)
downloadwix-615bc202834ac45a9a107e5fccd900081a4abf74.tar.gz
wix-615bc202834ac45a9a107e5fccd900081a4abf74.tar.bz2
wix-615bc202834ac45a9a107e5fccd900081a4abf74.zip
Include the preprocessed include files with the processed document
This change also cleans up the internal state handling of the preprocesor to pass the processing state around rather than depend on "global state" in member variables. This removes the need to "reset" the member variables before preprocessing which is much cleaner.
Diffstat (limited to 'src/WixToolset.Core/IPreprocessor.cs')
-rw-r--r--src/WixToolset.Core/IPreprocessor.cs5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/WixToolset.Core/IPreprocessor.cs b/src/WixToolset.Core/IPreprocessor.cs
index d892399c..151f8111 100644
--- a/src/WixToolset.Core/IPreprocessor.cs
+++ b/src/WixToolset.Core/IPreprocessor.cs
@@ -3,13 +3,12 @@
3namespace WixToolset.Core 3namespace WixToolset.Core
4{ 4{
5 using System.Xml; 5 using System.Xml;
6 using System.Xml.Linq;
7 using WixToolset.Extensibility.Data; 6 using WixToolset.Extensibility.Data;
8 7
9 public interface IPreprocessor 8 public interface IPreprocessor
10 { 9 {
11 XDocument Preprocess(IPreprocessContext context); 10 IPreprocessResult Preprocess(IPreprocessContext context);
12 11
13 XDocument Preprocess(IPreprocessContext context, XmlReader reader); 12 IPreprocessResult Preprocess(IPreprocessContext context, XmlReader reader);
14 } 13 }
15} 14}