コード例 #1
0
ファイル: JSNodeTypes.cs プロジェクト: wdstest/SharpJS
        protected JSNode()
        {
            TypeId = GetTypeId(GetType());

            var td = JSNodeTraversalData.Get(TypeId);

            Children                 = new JSNodeChildren(this, td, false);
            SelfAndChildren          = new JSNodeChildren(this, td, true);
            AllChildrenRecursive     = new JSNodeChildrenRecursive(this, td, false);
            SelfAndChildrenRecursive = new JSNodeChildrenRecursive(this, td, true);
        }
コード例 #2
0
        public JSNode()
        {
            TypeId = TypeIds[GetType()];

            var td = JSNodeTraversalData.Get(TypeId);

            Children                 = new JSNodeChildren(this, td, false);
            SelfAndChildren          = new JSNodeChildren(this, td, true);
            AllChildrenRecursive     = new JSNodeChildrenRecursive(this, td, false);
            SelfAndChildrenRecursive = new JSNodeChildrenRecursive(this, td, true);
        }