blob: 6821463f554e0394e8d52fe4551e2c41fa717522 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
/*******************************************************************************
* Copyright (c) 2011 Institute for Software, HSR Hochschule fuer Technik
* Rapperswil, University of applied sciences and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Institute for Software (IFS)- initial API and implementation
******************************************************************************/
package org.eclipse.cdt.internal.core.dom.parser;
import org.eclipse.cdt.core.dom.ast.IASTCopyLocation;
import org.eclipse.cdt.core.dom.ast.IASTFileLocation;
import org.eclipse.cdt.core.dom.ast.IASTNode;
/**
* @author Emanuel Graf IFS
*/
public class ASTCopyLocation implements IASTCopyLocation {
private IASTNode originalNode;
public ASTCopyLocation(IASTNode originalNode) {
this.originalNode = originalNode;
}
@Override
public int getNodeOffset() {
return 0;
}
@Override
public int getNodeLength() {
return 0;
}
@Override
public IASTFileLocation asFileLocation() {
return null;
}
@Override
public IASTNode getOriginalNode() {
return originalNode;
}
}
|