示例#1
0
文件: FGParser.cs 项目: Dronjak/Puzz
 public static TextSpan Create(TextPosition start, TextOffset length)
 {
     return(new TextSpan
     {
         line = start.line,
         index = start.index,
         lineOffset = length.lines,
         indexOffset = length.indexOffset
     });
 }
示例#2
0
	public static TextSpan Create(TextPosition start, TextOffset length)
	{
		return new TextSpan
		{
			line = start.line,
			index = start.index,
			lineOffset = length.lines,
			indexOffset = length.indexOffset
		};
	}