Example #1
0
        public override void WriteOutput(OutputContext context)
        {
            using (context.BeginReferenceScope(isReference)) {
                var(imports, otherStatements) = Statements.Split <ImportStatement, Statement>();
                foreach (var import in imports)
                {
                    if (!isReference)
                    {
                        import.WriteOutput(context);
                    }
                }

                foreach (var childNode in otherStatements)
                {
                    if (!isReference || childNode is MediaBlock || childNode is Ruleset)
                    {
                        childNode.WriteOutput(context);
                    }
                }
            }
        }