Add an explicit intermediate YANG representation
[yangtools.git] / yang / yang-parser-rfc7950 / src / main / java / org / opendaylight / yangtools / yang / parser / rfc7950 / ir / IRStatement022.java
1 /*
2  * Copyright (c) 2020 PANTHEON.tech, s.r.o. and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8 package org.opendaylight.yangtools.yang.parser.rfc7950.ir;
9
10 final class IRStatement022 extends IRStatement {
11     private final short startLine;
12     private final short startColumn;
13
14     IRStatement022(final IRKeyword keyword, final IRArgument argument, final int startLine, final int startColumn) {
15         super(keyword, argument);
16         this.startLine = (short) startLine;
17         this.startColumn = (short) startColumn;
18     }
19
20     @Override
21     public int startLine() {
22         return Short.toUnsignedInt(startLine);
23     }
24
25     @Override
26     public int startColumn() {
27         return Short.toUnsignedInt(startColumn);
28     }
29 }