Ejemplo n.º 1
0
    public override void RemoveDeclaration(SymbolDeclaration symbol)
    {
        switch (symbol.kind)
        {
        case SymbolKind.LocalConstant:
        case SymbolKind.Variable:
        case SymbolKind.ForEachVariable:
        case SymbolKind.FromClauseVariable:
            base.RemoveDeclaration(symbol);
            return;
        }

        if (definition != null)
        {
            definition.RemoveDeclaration(symbol);
        }
        base.RemoveDeclaration(symbol);
    }