internal string GetIdentifier()
 {
     if (this.Kind != ExpressionTokenKind.Identifier)
     {
         throw ExpressionLexer.ParseError(Strings.ExpressionToken_IdentifierExpected(this.Position));
     }
     return(this.Text);
 }
Exemple #2
0
        /// <summary>Gets the current identifier text.</summary>
        /// <returns>The current identifier text.</returns>
        internal string GetIdentifier()
        {
            DebugUtils.CheckNoExternalCallers();

            if (this.Kind != ExpressionTokenKind.Identifier)
            {
                throw ExpressionLexer.ParseError(Strings.ExpressionToken_IdentifierExpected(this.Position));
            }

            Debug.Assert(this.Text != null, "Text is null");
            return(this.Text);
        }