src: misc typos, doc and warning fixes
authorAlexis Laferrière <alexis.laf@xymus.net>
Sun, 7 May 2017 17:30:53 +0000 (13:30 -0400)
committerAlexis Laferrière <alexis.laf@xymus.net>
Sun, 7 May 2017 17:53:08 +0000 (13:53 -0400)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

src/highlight.nit
src/model/mdoc.nit
src/nitlight.nit
src/semantize/typing.nit

index 5141fbe..66e1cd9 100644 (file)
@@ -25,7 +25,8 @@ class HighlightVisitor
        # The root of the HTML hierarchy
        var html = new HTMLTag("span")
 
-       # Is the HTML include a nested `<span class"{type_of_node}">` element for each `ANode` of the AST?
+       # Should the HTML include a nested `<span class"{type_of_node}">` element for each `ANode` of the AST?
+       #
        # Used to have a really huge and verbose HTML (mainly for debug)
        var with_ast = false is writable
 
@@ -62,7 +63,7 @@ class HighlightVisitor
        #
        # By default, `null` is returned.
        # Clients are therefore encouraged to redefine the method in a subclass to control where entities should link to.
-       fun hrefto(entitiy: MEntity): nullable String do return null
+       fun hrefto(entity: MEntity): nullable String do return null
 
        init
        do
index 7ce57e4..261fafe 100644 (file)
@@ -35,7 +35,7 @@ end
 
 redef class MEntity
        # The documentation associated to the entity
-       var mdoc: nullable MDoc is writable
+       var mdoc: nullable MDoc = null is writable
 
        # The documentation associated to the entity or their main nested entity.
        #
index 554bc00..2c66ce7 100644 (file)
@@ -32,7 +32,7 @@ class NitlightVisitor
        # Entities outside these modules will not be linked.
        var mmodules: Collection[MModule]
 
-       redef fun hrefto(entitiy) do return entitiy.href(self)
+       redef fun hrefto(entity) do return entity.href(self)
 end
 
 redef class MEntity
index fc89e5f..5340c14 100644 (file)
@@ -740,7 +740,7 @@ end
 class CallSite
        super MEntity
 
-       redef var location: Location
+       redef var location
 
        # The static type of the receiver (possibly unresolved)
        var recv: MType
@@ -791,7 +791,7 @@ end
 
 redef class Variable
        # The declared type of the variable
-       var declared_type: nullable MType is writable
+       var declared_type: nullable MType = null is writable
 
        # Was the variable type-adapted?
        # This is used to speedup type retrieval while it remains `false`