コード例 #1
0
ファイル: XamlNodes.cs プロジェクト: zx597855313/wpf
 public XamlNode(InternalNodeType internalNodeType)
 {
     Debug.Assert(internalNodeType == InternalNodeType.EndOfAttributes ||
                  internalNodeType == InternalNodeType.StartOfStream ||
                  internalNodeType == InternalNodeType.EndOfStream, "XamlNode ctor: Illegal Internal node type");
     _nodeType         = XamlNodeType.None;
     _internalNodeType = internalNodeType;
     _data             = null;
 }
コード例 #2
0
 internal static bool IsEof_Helper(XamlNodeType nodeType, object data)
 {
     if ((nodeType == XamlNodeType.None) && (data is InternalNodeType))
     {
         InternalNodeType type = (InternalNodeType)data;
         if (type == InternalNodeType.EndOfStream)
         {
             return(true);
         }
     }
     return(false);
 }
コード例 #3
0
ファイル: XamlNodes.cs プロジェクト: zx597855313/wpf
        public XamlNode(XamlNodeType nodeType)
        {
#if DEBUG
            switch (nodeType)
            {
            case XamlNodeType.EndObject:
            case XamlNodeType.EndMember:
            case XamlNodeType.GetObject:
                break;

            default:
                Debug.Assert(false, "XamlNode Ctor missing data argument");
                break;
            }
#endif
            _nodeType         = nodeType;
            _internalNodeType = InternalNodeType.None;
            _data             = null;
        }
コード例 #4
0
ファイル: XamlNodes.cs プロジェクト: zx597855313/wpf
        public XamlNode(XamlNodeType nodeType, object data)
        {
#if DEBUG
            switch (nodeType)
            {
            case XamlNodeType.StartObject:
                Debug.Assert(data is XamlType, "XamlNode ctor, StartObject data is not a XamlType");
                break;

            case XamlNodeType.StartMember:
                Debug.Assert(data is XamlMember, "XamlNode ctor, StartMember data is not a XamlMember");
                break;

            case XamlNodeType.NamespaceDeclaration:
                Debug.Assert(data is NamespaceDeclaration, "XamlNode ctor, NamespaceDeclaration data is not a NamespaceDeclaration");
                break;

            case XamlNodeType.Value:
                // can be anything;
                break;

            case XamlNodeType.EndObject:
            case XamlNodeType.EndMember:
            case XamlNodeType.GetObject:
                Debug.Assert(data == null, "XamlNode ctor, Internal XamlNode data must be null for this Node type");
                break;

            default:
                Debug.Assert(false, "XamlNode ctor, incorrect ctor called.");
                break;
            }
#endif
            _nodeType         = nodeType;
            _internalNodeType = InternalNodeType.None;
            _data             = data;
        }
コード例 #5
0
ファイル: XamlNodes.cs プロジェクト: zx597855313/wpf
 public XamlNode(LineInfo lineInfo)
 {
     _nodeType         = XamlNodeType.None;
     _internalNodeType = InternalNodeType.LineInfo;
     _data             = lineInfo;
 }
コード例 #6
0
 public XamlInstruction(XamlInstructionType instructionType)
 {
     this.instructionType = instructionType;
     internalNodeType     = InternalNodeType.None;
     data = null;
 }
コード例 #7
0
ファイル: XamlInstruction.cs プロジェクト: rdterner/OmniXAML
 public XamlInstruction(XamlInstructionType instructionType)
 {
     this.instructionType = instructionType;
     internalNodeType = InternalNodeType.None;
     data = null;
 }
コード例 #8
0
ファイル: XamlNode.cs プロジェクト: Athari/Alba.Jaml
 public XamlNode (LineInfo lineInfo)
 {
     this._nodeType = XamlNodeType.None;
     this._internalNodeType = InternalNodeType.LineInfo;
     this._data = lineInfo;
 }
コード例 #9
0
ファイル: XamlNode.cs プロジェクト: Athari/Alba.Jaml
 public XamlNode (InternalNodeType internalNodeType)
 {
     this._nodeType = XamlNodeType.None;
     this._internalNodeType = internalNodeType;
     this._data = null;
 }
コード例 #10
0
ファイル: XamlNode.cs プロジェクト: Athari/Alba.Jaml
 public XamlNode (XamlNodeType nodeType, object data)
 {
     this._nodeType = nodeType;
     this._internalNodeType = InternalNodeType.None;
     this._data = data;
 }
コード例 #11
0
ファイル: XamlNode.cs プロジェクト: Athari/Alba.Jaml
 public XamlNode (XamlNodeType nodeType)
 {
     this._nodeType = nodeType;
     this._internalNodeType = InternalNodeType.None;
     this._data = null;
 }
コード例 #12
0
 public XamlNode(System.Xaml.LineInfo lineInfo)
 {
     this._nodeType         = XamlNodeType.None;
     this._internalNodeType = InternalNodeType.LineInfo;
     this._data             = lineInfo;
 }
コード例 #13
0
 public XamlNode(InternalNodeType internalNodeType)
 {
     this._nodeType         = XamlNodeType.None;
     this._internalNodeType = internalNodeType;
     this._data             = null;
 }
コード例 #14
0
 public XamlNode(XamlNodeType nodeType, object data)
 {
     this._nodeType         = nodeType;
     this._internalNodeType = InternalNodeType.None;
     this._data             = data;
 }
コード例 #15
0
 public XamlNode(XamlNodeType nodeType)
 {
     this._nodeType         = nodeType;
     this._internalNodeType = InternalNodeType.None;
     this._data             = null;
 }
コード例 #16
0
ファイル: XamlNode.cs プロジェクト: danwalmsley/OmniXAML
 public XamlNode(XamlNodeType nodeType)
 {
     this.nodeType = nodeType;
     internalNodeType = InternalNodeType.None;
     data = null;
 }