Constructor.cs 557 B

1234567891011121314151617181920212223242526272829
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Xml.Linq;
  5. namespace csharp_sccd_compiler
  6. {
  7. public class Constructor : Method
  8. {
  9. public Constructor(XElement xml) : base(xml)
  10. {
  11. }
  12. public Constructor(string class_name)
  13. {
  14. this.name = class_name;
  15. this.access = "public";
  16. this.parameters = new List<FormalParameter>();
  17. }
  18. public override void accept(Visitor visitor)
  19. {
  20. visitor.visit (this);
  21. }
  22. }
  23. }