public InconsistentConditionalExpression(JSToCSharpExceptionType type, RelinqScriptExpression root, ConditionalExpression expression, RelinqScriptType inferredTypeOfTest, RelinqScriptType inferredTypeOfIfTrue, RelinqScriptType inferredTypeOfIfFalse) 
     : base(type, root, expression)
 {
     InferredTypeOfTest = inferredTypeOfTest;
     InferredTypeOfIfTrue = inferredTypeOfIfTrue;
     InferredTypeOfIfFalse = inferredTypeOfIfFalse;
 }
Esempio n. 2
0
 public CSharpBuilderException(JSToCSharpExceptionType type, RelinqScriptExpression root, RelinqScriptExpression expression, CompilationContext ctx, Exception innerException)
     : base(innerException)
 {
     Type = type;
     Root = root;
     Expression = expression;
     Context = ctx;
 }
Esempio n. 3
0
        public TypeInferenceException(JSToCSharpExceptionType type, RelinqScriptExpression root, RelinqScriptExpression expression, Exception innerException)
            : base(innerException)
        {
            Type = type;
            Root = root;
            Expression = expression;

            var full = TypeInferenceEngine._sap.History.ToArray();
            History = full.Where(e => e.Expression.IsIndirectChildOf(root)).ToArray();
        }
        public MethodGroupResolutionFailedException(JSToCSharpExceptionType type, MethodGroup methodGroup, Dictionary<MethodInfo, MethodResolutionException> failboats, TypeInferenceContext ctx, Exception innerException)
            : base(type, ctx.Root.AsArray().Concat(ctx.Root.Parents()).Last(), ctx.Root, innerException)
        {
            MethodGroup = methodGroup;
            Failboats = failboats;

            try
            {
                ActualArguments = ctx.Root.ToXArgs(ctx.Inferences).ToArray();
            }
            catch (Exception)
            {
                // sigh, the client won't get full info from the crash site
                // sad, but true, so just ignore possible exceptions
            }
        }
Esempio n. 5
0
 public CSharpBuilderException(JSToCSharpExceptionType type, RelinqScriptExpression root, RelinqScriptExpression expression, CompilationContext ctx)
     : this(type, root, expression, ctx, null)
 {
 }
 public MethodGroupResolutionFailedException(JSToCSharpExceptionType type, MethodGroup methodGroup, Dictionary<MethodInfo, MethodResolutionException> failboats, TypeInferenceContext ctx)
     : this(type, methodGroup, failboats, ctx, null)
 {
 }
Esempio n. 7
0
 public SemanticErrorException(JSToCSharpExceptionType type, CommonTree node, Exception innerException)
     : base(type, innerException)
 {
     Node = node;
 }
Esempio n. 8
0
 public SemanticErrorException(JSToCSharpExceptionType type, CommonTree node)
     : this(type, node, null)
 {
 }
Esempio n. 9
0
 public TypeInferenceException(JSToCSharpExceptionType type, RelinqScriptExpression root, RelinqScriptExpression expression)
     : this(type, root, expression, null)
 {
 }
Esempio n. 10
0
 protected ParserException(JSToCSharpExceptionType type, Exception innerException)
     : base(innerException)
 {
     Type = type;
 }
Esempio n. 11
0
 protected ParserException(JSToCSharpExceptionType type)
     : this(type, null)
 {
 }