Exemplo n.º 1
0
        internal static IIdentifier GetConfigurationKeywordFromConfigurationDeclaration(this IStatement statement)
        {
            Contract.Requires(statement != null);
            Contract.Requires(statement.IsConfigurationDeclaration());

            var expressionStatement = (IExpressionStatement)statement;
            var callExpression      = expressionStatement.Expression.Cast <ICallExpression>();
            var identifier          = (IIdentifier)callExpression.Expression;

            return(identifier);
        }