Skip to content

Commit

Permalink
Fix some warnings about broken links in documentation
Browse files Browse the repository at this point in the history
Unfortunately, any attempts to fix

[warn] ...\compiler\shared\src\main\scala\io\kaitai\struct\translators\BaseTranslator.scala:9:1: Could not find any member to link for "AbstractTranslator.translate".
[warn] ...\compiler\shared\src\main\scala\io\kaitai\struct\Utils.scala:103:3: Could not find any member to link for "IterableOnce".

are unsuccessful. Scala is the most stupid language I even know
  • Loading branch information
Mingun committed Sep 8, 2024
1 parent 049b464 commit 30c8a29
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ abstract class ClassSpecs(val firstSpec: ClassSpec) extends mutable.HashMap[Stri
this(firstSpec.name.head) = firstSpec

/**
* Calls certain function on all [[ClassSpec]] elements stored in this ClassSpecs,
* Calls certain function on all [[format.ClassSpec]] elements stored in this ClassSpecs,
* and all subtypes stored in these elements, recursively.
*
* @param proc function to execute on every encountered type.
Expand All @@ -24,7 +24,7 @@ abstract class ClassSpecs(val firstSpec: ClassSpec) extends mutable.HashMap[Stri
forEachTopLevel((_, typeSpec) => typeSpec.forEachRec(proc))

/**
* Calls certain function on all top-level [[ClassSpec]] elements stored in this
* Calls certain function on all top-level [[format.ClassSpec]] elements stored in this
* ClassSpecs.
*/
def forEachTopLevel[R](proc: (String, ClassSpec) => Unit): Unit = {
Expand All @@ -39,7 +39,7 @@ abstract class ClassSpecs(val firstSpec: ClassSpec) extends mutable.HashMap[Stri
}

/**
* Calls certain function on all [[ClassSpec]] elements stored in this ClassSpecs,
* Calls certain function on all [[format.ClassSpec]] elements stored in this ClassSpecs,
* and all subtypes stored in these elements, recursively.
*
* @param proc function to execute on every encountered type.
Expand All @@ -48,7 +48,7 @@ abstract class ClassSpecs(val firstSpec: ClassSpec) extends mutable.HashMap[Stri
mapTopLevel((_, typeSpec) => typeSpec.mapRec(proc))

/**
* Calls certain function on all top-level [[ClassSpec]] elements stored in this
* Calls certain function on all top-level [[format.ClassSpec]] elements stored in this
* ClassSpecs.
*
* @param proc function to execute on every encountered type.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ abstract trait CommonMethods[T] extends TypeDetector {
* of expression in certain target language.
* @note Must be kept in sync with [[TypeDetector.detectAttributeType]]
* @param call attribute call expression to translate
* @return result of translation as [[T]]
* @return result of translation as `T`
*/
def translateAttribute(call: Ast.expr.Attribute): T = {
val attr = call.attr
Expand Down Expand Up @@ -195,7 +195,7 @@ abstract trait CommonMethods[T] extends TypeDetector {
*
* @note Must be kept in sync with [[TypeDetector.detectCallType]]
* @param call function call expression to translate
* @return result of translation as [[T]]
* @return result of translation as `T`
*/
def translateCall(call: Ast.expr.Call): T = {
val func = call.func
Expand Down

0 comments on commit 30c8a29

Please sign in to comment.