Beispiel #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);
 }
Beispiel #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;
        }
Beispiel #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;
        }
Beispiel #5
0
 public XamlNode(LineInfo lineInfo)
 {
     _nodeType         = XamlNodeType.None;
     _internalNodeType = InternalNodeType.LineInfo;
     _data             = lineInfo;
 }
Beispiel #6
0
 public XamlInstruction(XamlInstructionType instructionType)
 {
     this.instructionType = instructionType;
     internalNodeType     = InternalNodeType.None;
     data = null;
 }
Beispiel #7
0
 public XamlInstruction(XamlInstructionType instructionType)
 {
     this.instructionType = instructionType;
     internalNodeType = InternalNodeType.None;
     data = null;
 }
Beispiel #8
0
 public XamlNode (LineInfo lineInfo)
 {
     this._nodeType = XamlNodeType.None;
     this._internalNodeType = InternalNodeType.LineInfo;
     this._data = lineInfo;
 }
Beispiel #9
0
 public XamlNode (InternalNodeType internalNodeType)
 {
     this._nodeType = XamlNodeType.None;
     this._internalNodeType = internalNodeType;
     this._data = null;
 }
Beispiel #10
0
 public XamlNode (XamlNodeType nodeType, object data)
 {
     this._nodeType = nodeType;
     this._internalNodeType = InternalNodeType.None;
     this._data = data;
 }
Beispiel #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;
 }
Beispiel #16
0
 public XamlNode(XamlNodeType nodeType)
 {
     this.nodeType = nodeType;
     internalNodeType = InternalNodeType.None;
     data = null;
 }