resideInPath

abstract fun resideInPath(path: String, absolutePath: Boolean = false): Boolean

Determines whatever declaration reside in file path or file reside in path.

Return

true if the declaration resides in the specified (file) path, false otherwise.

Parameters

path

the (file) path to check.

absolutePath

Flag indicating whether the provided path is an absolute path. If set to true, the path parameter represents an absolute path. If set to false (default), the path parameter represents a relative path.