Exemple #1
0
        public void Process()
        {
            _name       = _node.Name;
            _returnType = _node[Consts.ReturnType];
            var attrsNode = _node.Get(Consts.Attrs);

            if (attrsNode == null)
            {
                return;
            }

            _isWriteProperty = attrsNode.Is(Consts.IsWriteProperty);
            _isReadProperty  = attrsNode.Is(Consts.IsReadProperty);
            _isStatic        = attrsNode.Is(Consts.IsStatic);
            _classWriter.AddDependentType(_returnType);
        }
 public void SetParameters(DataNode child, CSharpClassWriter classWriter)
 {
     foreach (var node in child.Children)
     {
         classWriter.AddDependentType(node[Consts.ParamType]);
         ParamNames.Add(node.Name);
         ParamTypes.Add(node[Consts.ParamType]);
         ByRef.Add(node.Is(Consts.IsRef));
     }
 }