Mono.TextTemplating.Tokeniser.GetDirectiveName C# (CSharp) Méthode

GetDirectiveName() private méthode

private GetDirectiveName ( ) : State
Résultat State
		State GetDirectiveName ()
		{
			int start = position;
			for (; position < content.Length; position++) {
				char c = content[position];
				if (!Char.IsLetterOrDigit (c)) {
					value = content.Substring (start, position - start);
					return State.Directive;
				} else {
					nextStateLocation = nextStateLocation.AddCol ();
				}
			}
			throw new ParserException ("Unexpected end of file.", nextStateLocation);
		}