what happens when you set transform.position in Unity?

Unity has both transform.positionandtransform.localPosition. When I do transform.position.x += 3f; does unity automatically update transform.localposition? and vice versa?

Why can I not see this when I go to the definition of transform.position in VS?