Beispiel #1
0
 public EnumConstantDecl(Cursor c, ISymbolTable table)
     : base(c, table)
 {
     Debug.Assert(c.Kind == CursorKind.EnumConstantDecl);
     Debug.Assert(c.SemanticParentCurosr != null);
     Debug.Assert(c.SemanticParentCurosr.Kind == CursorKind.EnumDecl);
     _parent = table.FindEnumDeclaration(c.SemanticParentCurosr.Usr);
     Debug.Assert(_parent != null);
 }
Beispiel #2
0
 private DeclarationViewModel FindOrAddEnumNode(EnumDecl e)
 {
     Debug.Assert(e.Parent != null);
     var parentnode = FindOrAddParentNode(e.Parent);
     return parentnode.FindOrAddChildDecl(e);
 }