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

MaybeRecognizeVarAsKeyword() private method

private MaybeRecognizeVarAsKeyword ( LNode &type ) : void
type LNode
return void
		private void MaybeRecognizeVarAsKeyword(ref LNode type)
		{
			// Recognize "var" (but not @var) as a contextual keyword.
			SourceRange rng;
			Symbol name = type.Name;
			if ((name == _var) && type.IsId 
			&& (rng = type.Range).Source.Text.TryGet(rng.StartIndex, '\0') != '@') {
				type = type.WithName(S.Missing);
			}
		}
	
EcsParser