Example #1
0
        /// <summary>
        /// Adds the child scope of the given namespace to the opened scopes
        /// </summary>
        /// <param name="symbol"></param>
        public void OpenScope(AstNamespace symbol)
        {
            if (symbol.IsNullOrInvalid())
            {
                this.ReportNormal("Open Scope", ProgressEventArgsResult.Failure);

                return;
            }

            RefResContext.OpenScope(symbol);

            this.ReportNormal("Open Scope", symbol.AccessName, ProgressEventArgsResult.Success);
        }
Example #2
0
        /// <summary>
        /// Close the child scope of the given namespace
        /// </summary>
        /// <param name="symbol"></param>
        public void CloseScope(AstNamespace symbol)
        {
            if (symbol.IsNullOrInvalid())
            {
                this.ReportNormal("Close Scope", ProgressEventArgsResult.Failure);

                return;
            }

            _symbolsCache.Clear();

            RefResContext.CloseScope(symbol);

            this.ReportNormal("Close Scope", symbol.AccessName, ProgressEventArgsResult.Success);
        }