From 89cafbec45879205ec0dc4f06d80caedaa2ec6fe Mon Sep 17 00:00:00 2001 From: Paul Kulchenko Date: Mon, 15 Jul 2013 22:02:30 -0700 Subject: [PATCH] Enabled slower and more thorough static analysis (ref #149; ref #168). --- src/editor/inspect.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/editor/inspect.lua b/src/editor/inspect.lua index 2518638580..3fa8894921 100644 --- a/src/editor/inspect.lua +++ b/src/editor/inspect.lua @@ -2,7 +2,7 @@ -- (C) 2012 Paul Kulchenko local M, LA, LI, T = {} -local FAST = true +local FAST = false local function init() if LA then return end @@ -136,7 +136,7 @@ function M.show_warnings(top_ast) local note = vast.parent and (vast.parent.tag == 'Call' or vast.parent.tag == 'Invoke') and vast.parent.note - if note and not isseen[vast.parent] then + if note and not isseen[vast.parent] and type(name) == "string" then isseen[vast.parent] = true warn("function '" .. name .. "': " .. note, line, path) end