From 21476045f97cc3e284c6481e6148e07009910f79 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alexis=20Laferri=C3=A8re?= Date: Sun, 7 May 2017 13:30:53 -0400 Subject: [PATCH] src: misc typos, doc and warning fixes MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Alexis Laferrière --- src/highlight.nit | 5 +++-- src/model/mdoc.nit | 2 +- src/nitlight.nit | 2 +- src/semantize/typing.nit | 4 ++-- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/highlight.nit b/src/highlight.nit index 5141fbe..66e1cd9 100644 --- a/src/highlight.nit +++ b/src/highlight.nit @@ -25,7 +25,8 @@ class HighlightVisitor # The root of the HTML hierarchy var html = new HTMLTag("span") - # Is the HTML include a nested `` element for each `ANode` of the AST? + # Should the HTML include a nested `` 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 diff --git a/src/model/mdoc.nit b/src/model/mdoc.nit index 7ce57e4..261fafe 100644 --- a/src/model/mdoc.nit +++ b/src/model/mdoc.nit @@ -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. # diff --git a/src/nitlight.nit b/src/nitlight.nit index 554bc00..2c66ce7 100644 --- a/src/nitlight.nit +++ b/src/nitlight.nit @@ -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 diff --git a/src/semantize/typing.nit b/src/semantize/typing.nit index fc89e5f..5340c14 100644 --- a/src/semantize/typing.nit +++ b/src/semantize/typing.nit @@ -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` -- 1.7.9.5