aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Extensibility/IPreprocessorExtension.cs
diff options
context:
space:
mode:
authorRob Mensching <rob@firegiant.com>2017-12-02 00:45:33 -0800
committerRob Mensching <rob@firegiant.com>2017-12-02 00:45:33 -0800
commitfb2df0e24c0709ce94c396624cf86c70e02da01f (patch)
treee0a16a342dca4f9b343afa945d89116856950b83 /src/WixToolset.Extensibility/IPreprocessorExtension.cs
parent404f34f00ecce034a8a06fe4757789c6ce62f3f6 (diff)
downloadwix-fb2df0e24c0709ce94c396624cf86c70e02da01f.tar.gz
wix-fb2df0e24c0709ce94c396624cf86c70e02da01f.tar.bz2
wix-fb2df0e24c0709ce94c396624cf86c70e02da01f.zip
Fix IExtensionCommandLine and IPreprocessorExtension
Diffstat (limited to 'src/WixToolset.Extensibility/IPreprocessorExtension.cs')
-rw-r--r--src/WixToolset.Extensibility/IPreprocessorExtension.cs26
1 files changed, 3 insertions, 23 deletions
diff --git a/src/WixToolset.Extensibility/IPreprocessorExtension.cs b/src/WixToolset.Extensibility/IPreprocessorExtension.cs
index de415526..8511abbc 100644
--- a/src/WixToolset.Extensibility/IPreprocessorExtension.cs
+++ b/src/WixToolset.Extensibility/IPreprocessorExtension.cs
@@ -12,12 +12,6 @@ namespace WixToolset.Extensibility
12 public interface IPreprocessorExtension 12 public interface IPreprocessorExtension
13 { 13 {
14 /// <summary> 14 /// <summary>
15 /// Gets or sets the preprocessor core for the extension.
16 /// </summary>
17 /// <value>Preprocessor core for the extension.</value>
18 IPreprocessorCore Core { get; set; }
19
20 /// <summary>
21 /// Gets the variable prefixes for the extension. 15 /// Gets the variable prefixes for the extension.
22 /// </summary> 16 /// </summary>
23 /// <value>The variable prefixes for the extension.</value> 17 /// <value>The variable prefixes for the extension.</value>
@@ -26,7 +20,7 @@ namespace WixToolset.Extensibility
26 /// <summary> 20 /// <summary>
27 /// Called at the beginning of the preprocessing of a source file. 21 /// Called at the beginning of the preprocessing of a source file.
28 /// </summary> 22 /// </summary>
29 void Initialize(); 23 void PrePreprocess(IPreprocessContext context);
30 24
31 /// <summary> 25 /// <summary>
32 /// Gets the value of a variable whose prefix matches the extension. 26 /// Gets the value of a variable whose prefix matches the extension.
@@ -55,25 +49,11 @@ namespace WixToolset.Extensibility
55 /// <param name="parent">The parent node of the pragma.</param> 49 /// <param name="parent">The parent node of the pragma.</param>
56 /// <returns>false if the pragma is not defined.</returns> 50 /// <returns>false if the pragma is not defined.</returns>
57 /// <comments>Don't return false for any condition except for unrecognized pragmas. Use Core.OnMessage for errors, warnings and messages.</comments> 51 /// <comments>Don't return false for any condition except for unrecognized pragmas. Use Core.OnMessage for errors, warnings and messages.</comments>
58 bool ProcessPragma(SourceLineNumber sourceLineNumbers, string prefix, string pragma, string args, XContainer parent); 52 bool ProcessPragma(string prefix, string pragma, string args, XContainer parent);
59
60 /// <summary>
61 /// Preprocess a document after normal preprocessing has completed.
62 /// </summary>
63 /// <param name="document">The document to preprocess.</param>
64 void PreprocessDocument(XDocument document);
65
66 /// <summary>
67 /// Preprocesses a parameter.
68 /// </summary>
69 /// <param name="name">Name of parameter that matches extension.</param>
70 /// <returns>The value of the parameter after processing.</returns>
71 /// <remarks>By default this method will cause an error if its called.</remarks>
72 string PreprocessParameter(string name);
73 53
74 /// <summary> 54 /// <summary>
75 /// Called at the end of the preprocessing of a source file. 55 /// Called at the end of the preprocessing of a source file.
76 /// </summary> 56 /// </summary>
77 void Finish(); 57 void PostPreprocess(XDocument document);
78 } 58 }
79} 59}