update NOTICE and LICENSE
[nit.git] / src / syntax / syntax_base.nit
index 09273ad..87595e1 100644 (file)
@@ -71,7 +71,7 @@ redef class MMGlobalClass
                if vpm == 3 then
                        return true
                else if vpm == 0 then
-                       v.error(n, "Visibility error: Class {self} comes from the hidden module {cm}.") # TODO: should not occur
+                       v.error(n, "Visibility error: Class {self} comes from the hidden module {pm}.") # TODO: should not occur
                        return false
                else if visibility_level >= 3 then
                        v.error(n, "Visibility error: Class {self} is private.")
@@ -111,7 +111,7 @@ redef class MMGlobalProperty
                        return true
                else if vpm == 0 then
                        # TODO: should not occurs 
-                       v.error(n, "Visibility error: Property {self} comes from the hidden module {cm}.")
+                       v.error(n, "Visibility error: Property {self} comes from the hidden module {pm}.")
                        return false
                else if visibility_level >= 3 then
                        v.error(n, "Visibility error: Property {self} is private.")
@@ -338,12 +338,6 @@ class AbsSyntaxVisitor
                return get_type_by_name(once ("String".to_symbol))
        end
 
-       # The primitive type Collection[nullable Object]
-       fun type_collection: MMType
-       do
-               return get_instantiated_type_by_name(once ("Collection".to_symbol), [type_object.as_nullable])
-       end
-
        # The primitive type NativeString
        fun type_nativestring: MMType
        do
@@ -399,19 +393,19 @@ class AbsSyntaxVisitor
        # Display an error for a given syntax node
        fun error(n: nullable ANode, s: String)
        do
-               _tc.error(if n == null then null else n.location, s)
+               _tc.error(if n == null then null else n.hot_location, s)
        end
 
        # Add an error, show errors and quit
        fun fatal_error(n: nullable ANode, s: String)
        do
-               _tc.fatal_error(if n == null then null else n.location, s)
+               _tc.fatal_error(if n == null then null else n.hot_location, s)
        end
 
        # Display a warning for a given syntax node
        fun warning(n: nullable ANode, s: String)
        do
-               _tc.warning(if n == null then null else n.location, s)
+               _tc.warning(if n == null then null else n.hot_location, s)
        end
 
        # Check conformity and display error
@@ -814,7 +808,7 @@ end
 
 redef class AForExpr
        # Associated automatic local variable
-       fun variable: AutoVariable is abstract
+       fun variables: Array[AutoVariable] is abstract
 end
 
 redef class ASelfExpr