Exemple #1
0
        public override void ExitUsingDeclarationWithIdentifierAlias([NotNull] SBP.UsingDeclarationWithIdentifierAliasContext context)
        {
            var stack = m_expressionData.PopStackLevel();

            if (!m_file.TypeScanIncluded)
            {
                var identifierExpression = stack.Pop();
                if (identifierExpression.IsUnresolvedIdentifier)
                {
                    var identifier = (string)identifierExpression.Value;
                    // TODO: check the identifier
                    m_file.AddNamespaceUsing(context.Start.Line, identifier);
                    throw new NotImplementedException();
                }
            }
        }
Exemple #2
0
 public override void EnterUsingDeclarationWithIdentifierAlias([NotNull] SBP.UsingDeclarationWithIdentifierAliasContext context)
 {
     m_expressionData.PushStackLevel("Using identifier alias");
 }