示例#1
0
 private void InferKeyword(KeywordExpression ke, TypeInferenceCache cache)
 {
     try
     {
         cache.Add(ke, Integration.ProduceCSharp(ke.Name).GetType());
     }
     catch (JSToCSharpIntegrationException jsex)
     {
         throw new TypeInferenceException(JSToCSharpExceptionType.Integration, Root, ke, jsex);
     }
 }
 private LinqExpression CompileKeyword(KeywordExpression ke, CompilationContext ctx)
 {
     return LinqExpression.Constant(Integration.ProduceCSharp(ke.Name));
 }