Exemplo n.º 1
0
        public FieldStatement(string name)
        {
            AccessModifier = AccessModifier.Public;
            Modifier = Modifier.Virtual;
            FieldType = CsType.String;

            this.name = new NameElement(name);
            attributes = new List<AttributeStatement>();
            blockStatement = new BlockStatement {SingleLine = true};
        }
Exemplo n.º 2
0
        public MethodStatement(string name, BlockStatement block)
        {
            AccessModifier = AccessModifier.Public;
            Modifier = Modifier.Virtual;
            ReturnType = CsType.Void;

            this.name = new NameElement(name);
            body = block;
            parameterList = new ParameterListStatement();
            attributes = new List<AttributeStatement>();
        }
Exemplo n.º 3
0
        public ClassStatement(string name)
        {
            AccessModifier = AccessModifier.Public;
            ClassModifier = ClassModifier.Empty;

            this.name = new NameElement(name);
            body = new BlockStatement();
            attributes = new List<AttributeStatement>();
            CsType = new CustomType(name);
            interfaces = new List<CsType>();
        }
Exemplo n.º 4
0
        public PropertyStatement(string name)
        {
            AccessModifier = AccessModifier.Public;
            getAccesor = GetAccesor.Empty;
            Modifier = Modifier.Virtual;
            ReturnType = CsType.String;
            setAccesor = SetAccesor.Empty;

            this.name = new NameElement(name);
            attributes = new List<AttributeStatement>();
            blockStatement = new BlockStatement {SingleLine = true};
        }
Exemplo n.º 5
0
 public ReferenceExpression(Expression owner, string name)
 {
     this.owner = owner;
     this.name = new NameElement(name);
 }
Exemplo n.º 6
0
 public ReferenceExpression(string name)
 {
     this.name = new NameElement(name);
 }
Exemplo n.º 7
0
 public ForeachStatement(NameElement itemName, Expression collection, BlockStatement body)
 {
     this.itemName = itemName;
     this.collection=collection;
     this.body = body;
 }
Exemplo n.º 8
0
 protected CsType(string name)
 {
     this.name = new LiteralCode(name);
     nameElement = new NameElement(name);
 }
Exemplo n.º 9
0
 public NamespaceStatement(string name, ICode code)
 {
     this.name = new NameElement(name);
     bracedCode = new BracedCode(new[] {code});
 }
Exemplo n.º 10
0
 public UsingStatement(string @namespace, ICode code)
 {
     this.@namespace = new NameElement(@namespace);
     this.code = code;
 }