public void WriteDeclaration(SwiftWriter writer)
        {
            if (writer == null)
            {
                throw new ArgumentNullException("writer");
            }

            SwiftComposite.WriteComment(1, writer, this.BriefComment);
            writer.WriteLine("\tcase {0} = {1}", _name, _value);
        }
Exemple #2
0
        public void WriteDeclaration(SwiftWriter writer)
        {
            if (writer == null)
            {
                throw new ArgumentNullException("writer");
            }

            SwiftComposite.WriteComment(1, writer, this.BriefComment);
            writer.Write("\t{0} {1}: ", _isConstant ? "let" : "var", this.Name);
            this.Type.Write(writer);
            writer.WriteLine();
        }