Added String Concat -> Interpolation Intention (KT-4750)
This commit is contained in:
committed by
Nikolay Krasko
parent
380f1875b8
commit
42f186b33f
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user