aboutsummaryrefslogblamecommitdiffstats
path: root/BaseTypes.h
blob: 2e92b07e84d7b2def141923c0bf1952166cd4ef1 (plain) (tree)
1
2
3
4
5
6
7
8
9





                    

                                                      
                 

                                                                 
 
                                                               
 

              


   
#pragma once


namespace dev {
namespace solidity {

/// Representation of an interval of source positions.
/// The interval includes start and excludes end.
struct Location {
    Location(int _start, int _end) : start(_start), end(_end) { }
    Location() : start(-1), end(-1) { }

    bool IsValid() const { return start >= 0 && end >= start; }

    int start;
    int end;
};

} }