1 | // Copyright (c) 2010-2013 AlphaSierraPapa for the SharpDevelop Team |
---|
2 | // |
---|
3 | // Permission is hereby granted, free of charge, to any person obtaining a copy of this |
---|
4 | // software and associated documentation files (the "Software"), to deal in the Software |
---|
5 | // without restriction, including without limitation the rights to use, copy, modify, merge, |
---|
6 | // publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons |
---|
7 | // to whom the Software is furnished to do so, subject to the following conditions: |
---|
8 | // |
---|
9 | // The above copyright notice and this permission notice shall be included in all copies or |
---|
10 | // substantial portions of the Software. |
---|
11 | // |
---|
12 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, |
---|
13 | // INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR |
---|
14 | // PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE |
---|
15 | // FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR |
---|
16 | // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
---|
17 | // DEALINGS IN THE SOFTWARE. |
---|
18 | |
---|
19 | using System; |
---|
20 | using System.Collections.Generic; |
---|
21 | |
---|
22 | namespace ICSharpCode.NRefactory.TypeSystem.Implementation |
---|
23 | { |
---|
24 | /// <summary> |
---|
25 | /// Special type definition for 'void'. |
---|
26 | /// </summary> |
---|
27 | public class VoidTypeDefinition : DefaultResolvedTypeDefinition |
---|
28 | { |
---|
29 | public VoidTypeDefinition(ITypeResolveContext parentContext, params IUnresolvedTypeDefinition[] parts) |
---|
30 | : base(parentContext, parts) |
---|
31 | { |
---|
32 | } |
---|
33 | |
---|
34 | public override TypeKind Kind { |
---|
35 | get { return TypeKind.Void; } |
---|
36 | } |
---|
37 | |
---|
38 | public override IEnumerable<IMethod> GetConstructors(Predicate<IUnresolvedMethod> filter, GetMemberOptions options) |
---|
39 | { |
---|
40 | return EmptyList<IMethod>.Instance; |
---|
41 | } |
---|
42 | |
---|
43 | public override IEnumerable<IEvent> GetEvents(Predicate<IUnresolvedEvent> filter, GetMemberOptions options) |
---|
44 | { |
---|
45 | return EmptyList<IEvent>.Instance; |
---|
46 | } |
---|
47 | |
---|
48 | public override IEnumerable<IField> GetFields(Predicate<IUnresolvedField> filter, GetMemberOptions options) |
---|
49 | { |
---|
50 | return EmptyList<IField>.Instance; |
---|
51 | } |
---|
52 | |
---|
53 | public override IEnumerable<IMethod> GetMethods(Predicate<IUnresolvedMethod> filter, GetMemberOptions options) |
---|
54 | { |
---|
55 | return EmptyList<IMethod>.Instance; |
---|
56 | } |
---|
57 | |
---|
58 | public override IEnumerable<IMethod> GetMethods(IList<IType> typeArguments, Predicate<IUnresolvedMethod> filter, GetMemberOptions options) |
---|
59 | { |
---|
60 | return EmptyList<IMethod>.Instance; |
---|
61 | } |
---|
62 | |
---|
63 | public override IEnumerable<IProperty> GetProperties(Predicate<IUnresolvedProperty> filter, GetMemberOptions options) |
---|
64 | { |
---|
65 | return EmptyList<IProperty>.Instance; |
---|
66 | } |
---|
67 | |
---|
68 | public override IEnumerable<IMember> GetMembers(Predicate<IUnresolvedMember> filter, GetMemberOptions options) |
---|
69 | { |
---|
70 | return EmptyList<IMember>.Instance; |
---|
71 | } |
---|
72 | } |
---|
73 | } |
---|