public sealed override void Populate(TextWriter trapFile) { PopulatePreprocessor(trapFile); trapFile.preprocessor_directive_active(this, Symbol.IsActive); trapFile.preprocessor_directive_location(this, Context.CreateLocation(ReportingLocation)); if (!Context.Extractor.Mode.HasFlag(ExtractorMode.Standalone)) { var compilation = Compilation.Create(Context); trapFile.preprocessor_directive_compilation(this, compilation); } }
protected sealed override void Populate(TextWriter trapFile) { PopulatePreprocessor(trapFile); trapFile.preprocessor_directive_active(this, trivia.IsActive); trapFile.preprocessor_directive_location(this, Context.CreateLocation(ReportingLocation)); if (!Context.Extractor.Standalone) { var compilation = Compilation.Create(Context); trapFile.preprocessor_directive_compilation(this, compilation); } }