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

AliasDecl() private method

private AliasDecl ( int startIndex ) : LNode
startIndex int
return LNode
		LNode AliasDecl(int startIndex)
		{
			LNode result = default(LNode);
			Check(Is(0, _alias), "Expected Is($LI, _alias)");
			var t = Match((int) TT.ContextualKeyword);
			var newName = ComplexNameDecl();
			Match((int) TT.QuickBindSet, (int) TT.Set);
			var oldName = ComplexNameDecl();
			result = RestOfAlias(startIndex, t, oldName, newName);
			return result;
		}
	
EcsParser