From fb2df0e24c0709ce94c396624cf86c70e02da01f Mon Sep 17 00:00:00 2001 From: Rob Mensching Date: Sat, 2 Dec 2017 00:45:33 -0800 Subject: Fix IExtensionCommandLine and IPreprocessorExtension --- .../IPreprocessorExtension.cs | 26 +++------------------- 1 file changed, 3 insertions(+), 23 deletions(-) (limited to 'src/WixToolset.Extensibility/IPreprocessorExtension.cs') 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 @@ -11,12 +11,6 @@ namespace WixToolset.Extensibility /// public interface IPreprocessorExtension { - /// - /// Gets or sets the preprocessor core for the extension. - /// - /// Preprocessor core for the extension. - IPreprocessorCore Core { get; set; } - /// /// Gets the variable prefixes for the extension. /// @@ -26,7 +20,7 @@ namespace WixToolset.Extensibility /// /// Called at the beginning of the preprocessing of a source file. /// - void Initialize(); + void PrePreprocess(IPreprocessContext context); /// /// Gets the value of a variable whose prefix matches the extension. @@ -55,25 +49,11 @@ namespace WixToolset.Extensibility /// The parent node of the pragma. /// false if the pragma is not defined. /// Don't return false for any condition except for unrecognized pragmas. Use Core.OnMessage for errors, warnings and messages. - bool ProcessPragma(SourceLineNumber sourceLineNumbers, string prefix, string pragma, string args, XContainer parent); - - /// - /// Preprocess a document after normal preprocessing has completed. - /// - /// The document to preprocess. - void PreprocessDocument(XDocument document); - - /// - /// Preprocesses a parameter. - /// - /// Name of parameter that matches extension. - /// The value of the parameter after processing. - /// By default this method will cause an error if its called. - string PreprocessParameter(string name); + bool ProcessPragma(string prefix, string pragma, string args, XContainer parent); /// /// Called at the end of the preprocessing of a source file. /// - void Finish(); + void PostPreprocess(XDocument document); } } -- cgit v1.2.3-55-g6feb