Added String Concat -> Interpolation Intention (KT-4750)

This commit is contained in:
Zack Grannan
2014-05-05 10:37:24 -07:00
committed by Nikolay Krasko
parent 380f1875b8
commit 42f186b33f
60 changed files with 493 additions and 8 deletions
@@ -1,5 +1,5 @@
/*
* Copyright 2010-2012 JetBrains s.r.o.
* Copyright 2010-2014 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -826,6 +826,10 @@ public class KotlinBuiltIns {
return !(type instanceof PackageType) && type.equals(getUnitType());
}
public boolean isString(@Nullable JetType type) {
return !(type instanceof PackageType) && getStringType().equals(type);
}
public boolean isData(@NotNull ClassDescriptor classDescriptor) {
return containsAnnotation(classDescriptor, getDataClassAnnotation());
}