mirror of
https://github.com/apple/pkl.git
synced 2026-04-23 08:48:36 +02:00
Convert org.pkl.core POJOs to record classes (#808)
This commit is contained in:
@@ -274,8 +274,8 @@ internal abstract class ModuleOrClassPageGenerator<S>(
|
||||
protected fun HtmlBlockTag.renderMemberSourceLink(member: Member) {
|
||||
// Prevent churn by setting static line numbers.
|
||||
// This is so our doc generator tests don't break if, say, we change sources in the stdlib.
|
||||
val startLine = if (isTestMode) 123 else member.sourceLocation.startLine
|
||||
val endLine = if (isTestMode) 456 else member.sourceLocation.endLine
|
||||
val startLine = if (isTestMode) 123 else member.sourceLocation.startLine()
|
||||
val endLine = if (isTestMode) 456 else member.sourceLocation.endLine()
|
||||
val moduleSourceUrl =
|
||||
pageScope.resolveModuleNameToSourceUrl(
|
||||
member.moduleName,
|
||||
|
||||
@@ -114,8 +114,8 @@ internal fun String.replaceSourceCodePlaceholders(
|
||||
sourceLocation: Member.SourceLocation
|
||||
): String {
|
||||
return replace("%{path}", path)
|
||||
.replace("%{line}", sourceLocation.startLine.toString())
|
||||
.replace("%{endLine}", sourceLocation.endLine.toString())
|
||||
.replace("%{line}", sourceLocation.startLine().toString())
|
||||
.replace("%{endLine}", sourceLocation.endLine().toString())
|
||||
}
|
||||
|
||||
/** Encodes a URI string, encoding characters that are part of URI syntax. */
|
||||
|
||||
Reference in New Issue
Block a user