1
/*******************************************************************************
2
* Copyright (c) 2007 Wind River Systems, Inc. and others.
3
* All rights reserved. This program and the accompanying materials
4
* are made available under the terms of the Eclipse Public License v1.0
5
* which accompanies this distribution, and is available at
6
* http://www.eclipse.org/legal/epl-v10.html
9
* Markus Schorn - initial API and implementation
10
*******************************************************************************/
12
package org.eclipse.cdt.internal.core.parser.scanner;
15
* Interface between location map and preprocessor for modeling contexts that can deal with offsets.
17
* synthetic contexts used for pre-included files, file-contexts, macro-expansions.
20
public interface ILocationCtx {
23
* If this is a file context the filename of this context is returned,
24
* otherwise the filename of the first enclosing context that is a file context is returned.
29
* Returns the enclosing context or <code>null</code> if this is the translation unit context.
31
ILocationCtx getParent();