token.cs
来自「全功能c#编译器」· CS 代码 · 共 59 行
CS
59 行
/*
* Created by SharpDevelop.
* User: Omnibrain
* Date: 07.09.2004
* Time: 18:59
*
* To change this template use Tools | Options | Coding | Edit Standard Headers.
*/
using System;
using System.Drawing;
namespace ICSharpCode.CsVbRefactory.Parser
{
public class Token
{
public int kind;
public int col;
public int line;
public object literalValue;
public string val;
public Token next;
public Point EndLocation {
get {
return new Point(val == null ? col + 1 : col + val.Length, line);
}
}
public Point Location {
get {
return new Point(col, line);
}
}
public Token(int kind) : this(kind, 0, 0)
{
}
public Token(int kind, int col, int line) : this (kind, col, line, null)
{
}
public Token(int kind, int col, int line, string val) : this(kind, col, line, val, null)
{
}
public Token(int kind, int col, int line, string val, object literalValue)
{
this.kind = kind;
this.col = col;
this.line = line;
this.val = val;
this.literalValue = literalValue;
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?