~ubuntu-branches/ubuntu/oneiric/monodevelop/oneiric

« back to all changes in this revision

Viewing changes to contrib/Mono.Debugger.Soft/Mono.Debugger.Soft/ParameterInfoMirror.cs

  • Committer: Bazaar Package Importer
  • Author(s): Jo Shields
  • Date: 2011-06-27 17:03:13 UTC
  • mto: (1.8.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 54.
  • Revision ID: james.westby@ubuntu.com-20110627170313-6cvz3s19x6e9hqe9
ImportĀ upstreamĀ versionĀ 2.5.92+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
using System;
 
2
using System.Collections.Generic;
 
3
using System.Text;
 
4
using System.Reflection;
 
5
 
 
6
namespace Mono.Debugger.Soft
 
7
{
 
8
        public class ParameterInfoMirror : Mirror {
 
9
 
 
10
                MethodMirror method;
 
11
                TypeMirror type;
 
12
                string name;
 
13
                int pos;
 
14
                ParameterAttributes attrs;
 
15
 
 
16
                internal ParameterInfoMirror (MethodMirror method, int pos, TypeMirror type, string name, ParameterAttributes attrs) : base (method.VirtualMachine, 0) {
 
17
                        this.method = method;
 
18
                        this.pos = pos;
 
19
                        this.type = type;
 
20
                        this.name = name;
 
21
                        this.attrs = attrs;
 
22
                }
 
23
 
 
24
                public TypeMirror ParameterType {
 
25
                        get {
 
26
                                return type;
 
27
                        }
 
28
                }
 
29
 
 
30
                public MethodMirror Method {
 
31
                        get {
 
32
                                return method;
 
33
                        }
 
34
                }
 
35
 
 
36
                public string Name {
 
37
                        get {
 
38
                                return name;
 
39
                        }
 
40
                }
 
41
 
 
42
                public int Position {
 
43
                        get {
 
44
                                return pos;
 
45
                        }
 
46
                }
 
47
 
 
48
                public ParameterAttributes Attributes {
 
49
                        get {
 
50
                                return attrs;
 
51
                        }
 
52
                }
 
53
 
 
54
                public bool IsRetval {
 
55
                        get {
 
56
                                return (Attributes & ParameterAttributes.Retval) != 0;
 
57
                        }
 
58
                }
 
59
 
 
60
                public override string ToString () {
 
61
                        return String.Format ("ParameterInfo ({0})", Name);
 
62
                }
 
63
        }
 
64
}
 
 
b'\\ No newline at end of file'