Refactoring: create DataClassUtils and move all "component" function utils there

This commit is contained in:
Nikolay Krasko
2014-09-11 12:37:54 +04:00
parent 65d358a066
commit c3f44d5030
12 changed files with 75 additions and 38 deletions
@@ -1,8 +0,0 @@
package org.jetbrains.jet.lang.resolve.name
import java.util.regex.Pattern
public val COMPONENT_FUNCTION_PATTERN: Pattern = Pattern.compile("^component(\\d+)$")
public fun String.isComponentFunctionName(): Boolean = COMPONENT_FUNCTION_PATTERN.matcher(this).matches()
public fun Name.isComponentFunctionName(): Boolean = asString().isComponentFunctionName()