コード例 #1
0
ファイル: LuatSyntaxLanguage.cs プロジェクト: arsaccol/SLED
 /// <summary>
 /// Creates an <see cref="IToken"/> that represents the range of text with the specified lexical parse data.
 /// </summary>
 /// <param name="startOffset">The start offset of the token.</param>
 /// <param name="length">The length of the token.</param>
 /// <param name="lexicalParseFlags">The <see cref="LexicalParseFlags"/> for the token.</param>
 /// <param name="parentToken">The <see cref="IToken"/> that starts the current state scope specified by the <see cref="ITokenLexicalParseData.LexicalState"/> property.</param>
 /// <param name="lexicalParseData">The <see cref="ITokenLexicalParseData"/> that contains lexical parse information about the token.</param>
 /// <returns></returns>
 public override IToken CreateToken(int startOffset, int length, LexicalParseFlags lexicalParseFlags, IToken parentToken, ITokenLexicalParseData lexicalParseData)
 {
     return new LuatToken(startOffset, length, lexicalParseFlags, parentToken, lexicalParseData);
 }
コード例 #2
0
ファイル: LuatToken.cs プロジェクト: arsaccol/SLED
		/////////////////////////////////////////////////////////////////////////////////////////////////////
		// OBJECT
		/////////////////////////////////////////////////////////////////////////////////////////////////////
		
		/// <summary>
		/// Initializes a new instance of the <c>LuatToken</c> class.
		/// </summary>
		/// <param name="startOffset">The start offset of the token.</param>
		/// <param name="length">The length of the token.</param>
		/// <param name="lexicalParseFlags">The <see cref="LexicalParseFlags"/> for the token.</param>
		/// <param name="parentToken">The <see cref="IToken"/> that starts the current state scope specified by the <see cref="IToken.LexicalState"/> property.</param>
		/// <param name="lexicalParseData">The <see cref="ITokenLexicalParseData"/> that contains lexical parse information about the token.</param>
		public LuatToken(int startOffset, int length, LexicalParseFlags lexicalParseFlags, IToken parentToken, ITokenLexicalParseData lexicalParseData) : 
			base(startOffset, length, lexicalParseFlags, parentToken, lexicalParseData) {}
コード例 #3
0
 /// <summary>
 /// Creates an <see cref="IToken"/> that represents the range of text with the specified lexical parse data.
 /// </summary>
 /// <param name="startOffset">The start offset of the token.</param>
 /// <param name="length">The length of the token.</param>
 /// <param name="lexicalParseFlags">The <see cref="LexicalParseFlags"/> for the token.</param>
 /// <param name="parentToken">The <see cref="IToken"/> that starts the current state scope specified by the <see cref="ITokenLexicalParseData.LexicalState"/> property.</param>
 /// <param name="lexicalParseData">The <see cref="ITokenLexicalParseData"/> that contains lexical parse information about the token.</param>
 /// <returns></returns>
 public override IToken CreateToken(int startOffset, int length, LexicalParseFlags lexicalParseFlags, IToken parentToken, ITokenLexicalParseData lexicalParseData)
 {
     return(new LuatToken(startOffset, length, lexicalParseFlags, parentToken, lexicalParseData));
 }
コード例 #4
0
        /////////////////////////////////////////////////////////////////////////////////////////////////////
        // OBJECT
        /////////////////////////////////////////////////////////////////////////////////////////////////////

        /// <summary>
        /// Initializes a new instance of the <c>LuatToken</c> class.
        /// </summary>
        /// <param name="startOffset">The start offset of the token.</param>
        /// <param name="length">The length of the token.</param>
        /// <param name="lexicalParseFlags">The <see cref="LexicalParseFlags"/> for the token.</param>
        /// <param name="parentToken">The <see cref="IToken"/> that starts the current state scope specified by the <see cref="IToken.LexicalState"/> property.</param>
        /// <param name="lexicalParseData">The <see cref="ITokenLexicalParseData"/> that contains lexical parse information about the token.</param>
        public LuatToken(int startOffset, int length, LexicalParseFlags lexicalParseFlags, IToken parentToken, ITokenLexicalParseData lexicalParseData) :
            base(startOffset, length, lexicalParseFlags, parentToken, lexicalParseData)
        {
        }