~ubuntu-branches/ubuntu/natty/monodevelop/natty

« back to all changes in this revision

Viewing changes to src/addins/AspNetAddIn/Parser/Tree/RootNode.cs

  • Committer: Bazaar Package Importer
  • Author(s): Stefan Ebner
  • Date: 2008-03-29 23:36:33 UTC
  • mto: (1.5.1 sid)
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: james.westby@ubuntu.com-20080329233633-l550uuwvfh1e68at
Tags: upstream-1.0+dfsg
ImportĀ upstreamĀ versionĀ 1.0+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
81
81
                {
82
82
                        switch (tagtype)
83
83
                        {
84
 
                                case TagType.Close:
85
 
                                        if ( !(currentTagId != tagId))
86
 
                                                throw new ParseException (location, "Closing tag does not match opening tag " + tagId + ".");
87
 
                                        currentNode = currentNode.Parent;
88
 
                                        break;
89
 
                                
90
 
                                case TagType.CodeRender:
91
 
                                        throw new NotImplementedException ("Code render expressions have not yet been implemented: " + location.PlainText);
92
 
                                        
93
 
                                case TagType.CodeRenderExpression:
94
 
                                        throw new NotImplementedException ("Code render expressions have not yet been implemented: " + location.PlainText);
95
 
                                        
96
 
                                case TagType.DataBinding:
97
 
                                        throw new NotImplementedException("Data binding expressions have not yet been implemented: " + location.PlainText);
98
 
                                        
99
 
                                case TagType.Directive:
100
 
                                        AddtoCurrent (location, new DirectiveNode (location, tagId, attributes));
101
 
                                        break;
102
 
                                
103
 
                                case TagType.Include:
104
 
                                        throw new NotImplementedException ("Server-side includes have not yet been implemented: " + location.PlainText);
105
 
                                        
106
 
                                case TagType.ServerComment:
107
 
                                        
108
 
                                        throw new NotImplementedException ("Server comments have not yet been implemented: " + location.PlainText);
109
 
                                
110
 
                                case TagType.SelfClosing:
111
 
                                        AddtoCurrent (location, new TagNode (location, tagId, attributes));
112
 
                                        break;
113
 
                                
114
 
                                case TagType.Tag:
115
 
                                        Node child = new TagNode (location, tagId, attributes);
116
 
                                        AddtoCurrent (location, child);
117
 
                                        currentNode = child;
118
 
                                        break;
119
 
                                
120
 
                                case TagType.Text:
121
 
                                        throw new NotImplementedException("Text tagtypes have not yet been implemented: " + location.PlainText);
 
84
                        case TagType.Close:
 
85
                                if ( !(currentTagId != tagId))
 
86
                                        throw new ParseException (location, "Closing tag does not match opening tag " + tagId + ".");
 
87
                                currentNode = currentNode.Parent;
 
88
                                break;
 
89
                                
 
90
                        case TagType.CodeRender:
 
91
                        case TagType.CodeRenderExpression:
 
92
                        case TagType.DataBinding:
 
93
                                AddtoCurrent (location, new ExpressionNode (location, tagId));
 
94
                                break;
 
95
                                
 
96
                        case TagType.Directive:
 
97
                                AddtoCurrent (location, new DirectiveNode (location, tagId, attributes));
 
98
                                break;
 
99
                                
 
100
                        case TagType.Include:
 
101
                                throw new NotImplementedException ("Server-side includes have not yet been implemented: " + location.PlainText);
 
102
                                
 
103
                        case TagType.ServerComment:
 
104
                                //FIXME: the parser doesn't actually return these
 
105
                                throw new NotImplementedException ("Server comments have not yet been implemented: " + location.PlainText);
 
106
                                
 
107
                        case TagType.SelfClosing:
 
108
                                AddtoCurrent (location, new TagNode (location, tagId, attributes));
 
109
                                break;
 
110
                                
 
111
                        case TagType.Tag:
 
112
                                Node child = new TagNode (location, tagId, attributes);
 
113
                                AddtoCurrent (location, child);
 
114
                                currentNode = child;
 
115
                                break;
 
116
                                
 
117
                        case TagType.Text:
 
118
                                //FIXME: the parser doesn't actually return these
 
119
                                throw new NotImplementedException("Text tagtypes have not yet been implemented: " + location.PlainText);
122
120
                        }
123
121
                }
124
122