Ilya Gorbunov
b1766b167f
Remove mod function usage from tests
...
#KT-26654
2020-01-23 19:28:23 +03:00
Yan Zhulanow
9d1af5a17e
Fix tests: "infix modifier required" and "operator modifier required" errors
2015-11-27 15:51:11 +03:00
Denis Zharkov
4850fd10f0
Regenerate test data containing rendered descriptors
...
Introduced '@' after each annotation
2015-09-18 10:14:39 +03:00
Denis Zharkov
bae3320d52
Get rid of deprecated annotations in testData
2015-09-18 10:14:32 +03:00
Pavel V. Talanov
c313887641
Split CompileTimeConstant into two entities
...
1. ConstantValue
* just holds some value and its type
* implementations for concrete constants
2. CompileTimeConstant
* is only produced by ConstantExpressionEvaluator
* has additional flags (canBeUsedInAnnotation etc)
* has two implementations TypedCompileTimeConstant containing a constant value
and IntegerValueConstant which does not have exact type
* can be converted to ConstantValue
Adjustt usages to use ConstantValue if flags are not needed
Add tests for some uncovered cases
2015-07-16 02:28:05 +03:00
Ilya Gorbunov
39b27751df
Drop deprecated char operations: correct test data.
2015-07-04 04:46:23 +03:00
Mikhail Glukhikh
bae9a7d7f8
Types are no more rendered for annotation arguments + a swarm of tests corrected accordingly
2015-07-01 16:12:32 +03:00
Denis Zharkov
44a55e5bf6
Adjust testData to new labels syntax
2015-04-29 14:03:11 +03:00
Nikolay Krasko
fa393cf4f5
Escape surrogate characters
2014-09-11 12:52:54 +04:00
Natalia Ukhorskaya
89d99d2848
Remove toInt() from rendering IntValue
2014-03-13 10:07:17 +04:00
Andrey Breslav
65d90e18a2
Use DescriptorRenderer to render annotations everywhere
2014-01-14 16:37:50 +04:00
Natalia Ukhorskaya
27e602133d
Small fixes after review: do not set is_pure=true for named constants refactoring
2013-12-05 15:23:41 +04:00
Natalia Ukhorskaya
e805478d6c
Get call expression type from compile time value if possible
2013-12-05 15:22:00 +04:00
Natalia Ukhorskaya
53a5264aaf
Use type from compile time value for binary expression
2013-12-05 15:21:58 +04:00
Natalia Ukhorskaya
2a023c16a9
Use type from compile time value for prefix expression
2013-12-05 15:21:55 +04:00
Natalia Ukhorskaya
d63f6843c8
Merge ConstantExpressionEvaluator and CompileTimeConstantResolver
2013-12-05 15:21:50 +04:00
svtk
1bd63fefa4
Support equlas in ConstantExpressionEvaluator
2013-12-05 15:20:14 +04:00
Natalia Ukhorskaya
1d5d5486ce
Support compareTo in ConstantExpressionEvaluator
2013-12-05 15:20:12 +04:00
Natalia Ukhorskaya
96dc8b42bb
Support for unary expressions
2013-12-05 15:20:08 +04:00
Natalia Ukhorskaya
b7b957ffd2
Deparentesize expression in ConstantExpressionEvaluator
2013-12-05 15:19:58 +04:00
Natalia Ukhorskaya
210899af22
Support && and || in ConstantExpressionEvaluator
2013-12-05 15:19:55 +04:00
Natalia Ukhorskaya
f8f55799b9
Support or, and, xor and etc in ConstantExpressionEvaluator
2013-12-05 15:19:49 +04:00
Natalia Ukhorskaya
41387c3544
Support plus, minus, div, mod, multiply in ConstantExpressionEvaluator
2013-12-05 15:19:46 +04:00
Natalia Ukhorskaya
50d29e0526
Support string templates in ConstantExpressionEvaluator
2013-12-05 15:19:37 +04:00
Natalia Ukhorskaya
0b1dd2d2be
Support toInt, toChar and etc as CompileTimeConstants
2013-12-05 15:19:26 +04:00