Extract Function: Improve rendering of error messages

This commit is contained in:
Alexey Sedunov
2014-07-04 19:31:38 +04:00
parent 4734be2065
commit 1618d7448d
20 changed files with 58 additions and 45 deletions
@@ -2,4 +2,4 @@ prop += 1
prop2 +=2
prop + prop2
// RESULT: Cannot perform an action because this code fragment changes more than one variable: prop, prop2
// RESULT: Cannot perform an action because this code fragment changes more than one variable: var prop2: Int, var prop: Int
@@ -1,3 +1,3 @@
object {}
// RESULT: Cannot perform an action because following types are unavailable from debugger scope: errors.MyClass.baseFun.<no name provided>
// RESULT: Cannot perform an action because following types are unavailable from debugger scope: errors.MyClass.baseFun.<no name provided>
@@ -1 +1 @@
Cannot extract method since following types are not denotable in the target scope: foo.A
Cannot extract method since following types are not denotable in the target scope: foo.A
@@ -1 +1 @@
Cannot extract method since following types are not denotable in the target scope: foo.A
Cannot extract method since following types are not denotable in the target scope: foo.A
@@ -1 +1 @@
Cannot extract method since following types are not denotable in the target scope: foo.A
Cannot extract method since following types are not denotable in the target scope: foo.A
@@ -1 +1 @@
Selected code fragment has multiple output values: b c
Selected code fragment has multiple output values: var b: Int var c: Int
@@ -1 +1 @@
Selected code fragment has multiple output values: b c
Selected code fragment has multiple output values: var b: Int var c: Int
@@ -1 +1 @@
Selected code fragment has multiple output values: b c
Selected code fragment has multiple output values: var b: Int var c: Int
@@ -1 +1 @@
Cannot extract method since following types are not denotable in the target scope: foo.&lt;no name provided&gt;
Cannot extract method since following types are not denotable in the target scope: foo.&lt;no name provided&gt;
@@ -1 +1 @@
Selected code fragment has multiple output values: a b
Selected code fragment has multiple output values: val a: Int val b: Int
@@ -1 +1 @@
Following declarations won't be available outside of extracted function body: x
Following declarations won't be available outside of extracted function body: val x: Int
@@ -1 +1 @@
Cannot extract method since following types are not denotable in the target scope: [ERROR : ]
Cannot extract method since following types are not denotable in the target scope: [ERROR : &lt;ERROR FUNCTION RETURN TYPE&gt;]
@@ -1 +1 @@
Cannot extract method since following types are not denotable in the target scope: [ERROR : ]
Cannot extract method since following types are not denotable in the target scope: [ERROR : &lt;ERROR FUNCTION RETURN TYPE&gt;]
@@ -1 +1 @@
Cannot extract method since following types are not denotable in the target scope: foo.&lt;no name provided&gt;
Cannot extract method since following types are not denotable in the target scope: foo.&lt;no name provided&gt;
@@ -1 +1 @@
Cannot extract method since following types are not denotable in the target scope: foo.T
Cannot extract method since following types are not denotable in the target scope: foo.T
@@ -1 +1 @@
Cannot extract method since following types are not denotable in the target scope: foo.X
Cannot extract method since following types are not denotable in the target scope: foo.X
@@ -1 +1 @@
Cannot extract method since following types are not denotable in the target scope: foo.X
Cannot extract method since following types are not denotable in the target scope: foo.X