예제 #1
0
        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);
            }
        }
예제 #2
0
        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);
            }
        }