Merge: Include extra Java files in a project
[nit.git] / src / serialization_phase.nit
index c06a74d..f565f56 100644 (file)
@@ -16,7 +16,7 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-# Phase generating methods to 
+# Phase generating methods to serialize Nit objects to different formats
 module serialization_phase
 
 import phase
@@ -135,7 +135,7 @@ private class SerializationPhase
 
                for nclassdef in nclassdefs do
                        var name = nclassdef.n_id.text
-                       if not name.has('[') then # FIXME this is a temporary hack
+                       if not name.chars.has('[') then # FIXME this is a temporary hack
                                code.add "              if name == \"{name}\" then return new {name}.from_deserializer(self)"
                        end
                end