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

« back to all changes in this revision

Viewing changes to src/core/NRefactory/Project/Src/Lexer/Token.cs

  • Committer: Bazaar Package Importer
  • Author(s): Jo Shields
  • Date: 2009-02-18 08:40:51 UTC
  • mfrom: (1.2.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20090218084051-gh8m6ukvokbwj7cf
Tags: 1.9.2+dfsg-1ubuntu1
* Merge from Debian Experimental (LP: #330519), remaining Ubuntu changes:
  + debian/control:
    - Update for Gnome# 2.24
    - Add libmono-cairo1.0-cil to build-deps to fool pkg-config check

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
//     <copyright see="prj:///doc/copyright.txt"/>
3
3
//     <license see="prj:///doc/license.txt"/>
4
4
//     <owner name="Mike Krüger" email="mike@icsharpcode.net"/>
5
 
//     <version>$Revision: 1581 $</version>
 
5
//     <version>$Revision: 2509 $</version>
6
6
// </file>
7
7
 
8
8
using System;
29
29
                        get {
30
30
                                return new Location(col, line);
31
31
                        }
32
 
                }
33
 
                
34
 
                public override string ToString ()
35
 
                {
36
 
                        return String.Format ("[Token:kind={0}, col={1}, line={2}, val={3}]", kind, col, line, val);
37
 
                }
38
 
 
 
32
                }
39
33
                
40
34
                public Token(int kind) : this(kind, 0, 0)
41
35
                {
57
51
                        this.val          = val;
58
52
                        this.literalValue = literalValue;
59
53
                }
 
54
                
 
55
                public override string ToString()
 
56
                {
 
57
                        return string.Format("[C# {0}/VB {1} line={2} col={3} val={4}]",
 
58
                                             CSharp.Tokens.GetTokenString(kind),
 
59
                                             VB.Tokens.GetTokenString(kind),
 
60
                                             line, col, val);
 
61
                        
 
62
                }
60
63
        }
61
64
}