Example #1
0
        Token EvaluateToken(IExpressionContext context)
        {
            // FIXME: in some situations items might not be allowed
            string val = context.EvaluateString(token.Value);

            return(new Token(val, TokenType.String, 0));
        }
Example #2
0
        // FIXME: in some situations items might not be allowed
        static Token EvaluateToken(Token token, IExpressionContext context)
        {
            string val = context.EvaluateString(token.Value);

            return(new Token(val, TokenType.String));
        }
Example #3
0
 public override bool TryEvaluateToString(IExpressionContext context, out string result)
 {
     result = context.EvaluateString(token.Value);
     return(true);
 }
		// FIXME: in some situations items might not be allowed
		static Token EvaluateToken (Token token, IExpressionContext context)
		{
			string val = context.EvaluateString (token.Value);
			return new Token (val, TokenType.String);
		}
Example #5
0
        static bool TryGetVisualStudioVersion(IExpressionContext context, out Version version)
        {
            string value = context.EvaluateString("$(VisualStudioVersion)");

            return(Version.TryParse(value, out version));
        }