Ejemplo n.º 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);
     }
 }
Ejemplo n.º 2
0
 private LinqExpression CompileKeyword(KeywordExpression ke, CompilationContext ctx)
 {
     return LinqExpression.Constant(Integration.ProduceCSharp(ke.Name));
 }