Backtrack a cursor until the top cursor is reached.
Analyze the scope the declaration/definition reside in by backtracking to the root.
Determine if a cursor is in the global or namespace scope.
Determine if a kind creates a local scope.
See Source File
Joakim Brännström (joakim.brannstrom@gmx.com)
This Source Code Form is subject to the terms of the Mozilla Public License, v.2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
MPL-2
Copyright (c) 2017, Joakim Brännström. All rights reserved.