Exemplo n.º 1
0
        public override void GenerateCode(GeneratedMethod method, ISourceWriter writer)
        {
            writer.Write($"case {SpecificEvent.VariableType.FullNameInCode()} {SpecificEvent.Usage}:");
            // TODO -- fix this with LamarCodeGeneration
            writer.As <SourceWriter>().IndentionLevel++;

            foreach (var frame in _inner)
            {
                frame.GenerateCode(method, writer);
            }

            writer.Write("break;");
            writer.As <SourceWriter>().IndentionLevel--;

            Next?.GenerateCode(method, writer);
        }