C++ Syntax [Variable](File\Path)?

Follow the above link for an example of the above syntax.
Why are we using that particular syntax, why can’t we reference StateName, like any other variable within the class?

This is a bug in the generated documentation page (documentation tries to generate links to other documentation pages but it failed)

The same function inside Engine is :

void AController::ChangeState(FName NewState)
{
	if(NewState != StateName)
	{
		// end current state
		if(StateName == NAME_Inactive)
		{
			EndInactiveState();
		}

		// Set new state name
		StateName = NewState;

		// start new state
		if(StateName == NAME_Inactive)
		{
			BeginInactiveState();
		}
	}
}

Ah, alright, I understand now, thank you for the help.