Loyc.Ecs.Parser.EcsParser.NonKeywordAttrError C# (CSharp) Method

NonKeywordAttrError() private method

private NonKeywordAttrError ( IList attrs, string stmtType ) : void
attrs IList
stmtType string
return void
		void NonKeywordAttrError(IList<LNode> attrs, string stmtType)
		{
			var attr = attrs.FirstOrDefault(a => a.AttrNamed(S.TriviaWordAttribute) != null);
			if ((attr != null)) {
				Error(attr, "'{0}' appears to be a word attribute, which is not permitted before '{1}'", attr.Range.SourceText, stmtType);
			}
		}
	
EcsParser