Пример #1
0
 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;
 }
 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
        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
        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
 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
 public XamlInstruction(XamlInstructionType instructionType)
 {
     this.instructionType = instructionType;
     internalNodeType = InternalNodeType.None;
     data = null;
 }
Пример #8
0
 public XamlNode (LineInfo lineInfo)
 {
     this._nodeType = XamlNodeType.None;
     this._internalNodeType = InternalNodeType.LineInfo;
     this._data = lineInfo;
 }
Пример #9
0
 public XamlNode (InternalNodeType internalNodeType)
 {
     this._nodeType = XamlNodeType.None;
     this._internalNodeType = internalNodeType;
     this._data = null;
 }
Пример #10
0
 public XamlNode (XamlNodeType nodeType, object data)
 {
     this._nodeType = nodeType;
     this._internalNodeType = InternalNodeType.None;
     this._data = data;
 }
Пример #11
0
 public XamlNode (XamlNodeType nodeType)
 {
     this._nodeType = nodeType;
     this._internalNodeType = InternalNodeType.None;
     this._data = null;
 }
 public XamlNode(System.Xaml.LineInfo lineInfo)
 {
     this._nodeType         = XamlNodeType.None;
     this._internalNodeType = InternalNodeType.LineInfo;
     this._data             = lineInfo;
 }
 public XamlNode(InternalNodeType internalNodeType)
 {
     this._nodeType         = XamlNodeType.None;
     this._internalNodeType = internalNodeType;
     this._data             = null;
 }
 public XamlNode(XamlNodeType nodeType, object data)
 {
     this._nodeType         = nodeType;
     this._internalNodeType = InternalNodeType.None;
     this._data             = data;
 }
 public XamlNode(XamlNodeType nodeType)
 {
     this._nodeType         = nodeType;
     this._internalNodeType = InternalNodeType.None;
     this._data             = null;
 }
Пример #16
0
 public XamlNode(XamlNodeType nodeType)
 {
     this.nodeType = nodeType;
     internalNodeType = InternalNodeType.None;
     data = null;
 }