github.com/hwaf/hwaf@v0.0.0-20140814122253-5465f73b20f1/hlib/cmt-compat.go (about)

     1  package hlib
     2  
     3  //
     4  // ----------- cmt statements models ----------
     5  //
     6  
     7  // PathStmt declares a new path entry with name Name and value Value
     8  type PathStmt struct {
     9  	Value Value
    10  }
    11  
    12  func (stmt *PathStmt) is_stmt() {
    13  }
    14  
    15  type PathAppendStmt struct {
    16  	Value Value
    17  }
    18  
    19  func (stmt *PathAppendStmt) is_stmt() {
    20  }
    21  
    22  type PathPrependStmt struct {
    23  	Value Value
    24  }
    25  
    26  func (stmt *PathPrependStmt) is_stmt() {
    27  }
    28  
    29  type PathRemoveStmt struct {
    30  	Value Value
    31  }
    32  
    33  func (stmt *PathRemoveStmt) is_stmt() {
    34  }
    35  
    36  type MacroStmt struct {
    37  	Value Value
    38  }
    39  
    40  func (stmt *MacroStmt) is_stmt() {
    41  }
    42  
    43  type MacroAppendStmt struct {
    44  	Value Value
    45  }
    46  
    47  func (stmt *MacroAppendStmt) is_stmt() {
    48  }
    49  
    50  type MacroPrependStmt struct {
    51  	Value Value
    52  }
    53  
    54  func (stmt *MacroPrependStmt) is_stmt() {
    55  }
    56  
    57  type MacroRemoveStmt struct {
    58  	Value Value
    59  }
    60  
    61  func (stmt *MacroRemoveStmt) is_stmt() {
    62  }
    63  
    64  // TagStmt defines a new CMT tag with name Name and content Content
    65  type TagStmt struct {
    66  	Name    string
    67  	Content []string
    68  }
    69  
    70  func (stmt *TagStmt) is_stmt() {
    71  }
    72  
    73  type ApplyTagStmt struct {
    74  	Value Value
    75  }
    76  
    77  func (stmt *ApplyTagStmt) is_stmt() {
    78  }
    79  
    80  // TagExcludeStmt defines a new CMT tag with name Name and content Content
    81  type TagExcludeStmt struct {
    82  	Name    string
    83  	Content []string
    84  }
    85  
    86  func (stmt *TagExcludeStmt) is_stmt() {
    87  }
    88  
    89  type IncludeDirsStmt struct {
    90  	Value []string
    91  }
    92  
    93  func (stmt *IncludeDirsStmt) is_stmt() {
    94  }
    95  
    96  type IncludePathStmt struct {
    97  	Value []string
    98  }
    99  
   100  func (stmt *IncludePathStmt) is_stmt() {
   101  }
   102  
   103  type SetStmt struct {
   104  	Value Value
   105  }
   106  
   107  func (stmt *SetStmt) is_stmt() {
   108  }
   109  
   110  type SetAppendStmt struct {
   111  	Value Value
   112  }
   113  
   114  func (stmt *SetAppendStmt) is_stmt() {
   115  }
   116  
   117  type SetPrependStmt struct {
   118  	Value Value
   119  }
   120  
   121  func (stmt *SetPrependStmt) is_stmt() {
   122  }
   123  
   124  type SetRemoveStmt struct {
   125  	Value Value
   126  }
   127  
   128  func (stmt *SetRemoveStmt) is_stmt() {
   129  }
   130  
   131  type AliasStmt struct {
   132  	Value Value
   133  }
   134  
   135  func (stmt *AliasStmt) is_stmt() {
   136  }
   137  
   138  type ActionStmt struct {
   139  	Value Value
   140  }
   141  
   142  func (stmt *ActionStmt) is_stmt() {
   143  }
   144  
   145  type PatternStmt struct {
   146  	Name string
   147  	Def  string
   148  }
   149  
   150  func (stmt *PatternStmt) is_stmt() {
   151  }
   152  
   153  type ApplyPatternStmt struct {
   154  	Name string
   155  	Args []string
   156  }
   157  
   158  func (stmt *ApplyPatternStmt) is_stmt() {
   159  }
   160  
   161  type DocumentStmt struct {
   162  	Name string
   163  	Args []string
   164  }
   165  
   166  func (stmt *DocumentStmt) is_stmt() {
   167  }
   168  
   169  type IgnorePatternStmt struct {
   170  	Value Value
   171  }
   172  
   173  func (stmt *IgnorePatternStmt) is_stmt() {
   174  }
   175  
   176  type MakeFragmentStmt struct {
   177  	Name string
   178  }
   179  
   180  func (stmt *MakeFragmentStmt) is_stmt() {
   181  }
   182  
   183  // test interfaces
   184  var _ Stmt = (*PathStmt)(nil)
   185  var _ Stmt = (*PathAppendStmt)(nil)
   186  var _ Stmt = (*PathPrependStmt)(nil)
   187  var _ Stmt = (*PathRemoveStmt)(nil)
   188  var _ Stmt = (*MacroStmt)(nil)
   189  var _ Stmt = (*MacroAppendStmt)(nil)
   190  var _ Stmt = (*MacroPrependStmt)(nil)
   191  var _ Stmt = (*MacroRemoveStmt)(nil)
   192  var _ Stmt = (*TagStmt)(nil)
   193  var _ Stmt = (*ApplyTagStmt)(nil)
   194  var _ Stmt = (*TagExcludeStmt)(nil)
   195  var _ Stmt = (*IncludeDirsStmt)(nil)
   196  var _ Stmt = (*IncludePathStmt)(nil)
   197  var _ Stmt = (*SetStmt)(nil)
   198  var _ Stmt = (*SetAppendStmt)(nil)
   199  var _ Stmt = (*SetPrependStmt)(nil)
   200  var _ Stmt = (*SetRemoveStmt)(nil)
   201  var _ Stmt = (*AliasStmt)(nil)
   202  var _ Stmt = (*PatternStmt)(nil)
   203  var _ Stmt = (*ApplyPatternStmt)(nil)
   204  var _ Stmt = (*IgnorePatternStmt)(nil)
   205  var _ Stmt = (*DocumentStmt)(nil)
   206  var _ Stmt = (*ActionStmt)(nil)
   207  var _ Stmt = (*MakeFragmentStmt)(nil)
   208  
   209  // EOF