misc/vim: inform the user when no results are found
[nit.git] / tests / test_deserialization_serial.nit
1 # This file is part of NIT ( http://www.nitlanguage.org ).
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 # http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14
15 # This file is generated by nitserial
16 # Saved here for testing
17 module test_deserialization_serial
18
19 import test_deserialization
20 import serialization
21
22 redef class Deserializer
23 redef fun deserialize_class(name)
24 do
25 if name == "Array[Object]" then return new Array[Object].from_deserializer(self)
26 if name == "Array[nullable Serializable]" then return new Array[nullable Serializable].from_deserializer(self)
27 if name == "F[Int]" then return new F[Int].from_deserializer(self)
28 if name == "F[Float]" then return new F[Float].from_deserializer(self)
29 if name == "Array[Serializable]" then return new Array[Serializable].from_deserializer(self)
30 if name == "Array[String]" then return new Array[String].from_deserializer(self)
31 if name == "Array[HashMap[String, nullable Object]]" then return new Array[HashMap[String, nullable Object]].from_deserializer(self)
32 if name == "Array[Match]" then return new Array[Match].from_deserializer(self)
33 if name == "Array[nullable Object]" then return new Array[nullable Object].from_deserializer(self)
34 if name == "Array[FlatBuffer]" then return new Array[FlatBuffer].from_deserializer(self)
35 return super
36 end
37 end