github.com/team-ide/go-dialect@v1.9.20/vitess/sqlparser/cached_size.go (about)

     1  /*
     2  Copyright 2021 The Vitess Authors.
     3  
     4  Licensed under the Apache License, Version 2.0 (the "License");
     5  you may not use this file except in compliance with the License.
     6  You may obtain a copy of the License at
     7  
     8      http://www.apache.org/licenses/LICENSE-2.0
     9  
    10  Unless required by applicable law or agreed to in writing, software
    11  distributed under the License is distributed on an "AS IS" BASIS,
    12  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    13  See the License for the specific language governing permissions and
    14  limitations under the License.
    15  */
    16  // Code generated by Sizegen. DO NOT EDIT.
    17  
    18  package sqlparser
    19  
    20  import hack "github.com/team-ide/go-dialect/vitess/hack"
    21  
    22  type cachedObject interface {
    23  	CachedSize(alloc bool) int64
    24  }
    25  
    26  func (cached *AddColumns) CachedSize(alloc bool) int64 {
    27  	if cached == nil {
    28  		return int64(0)
    29  	}
    30  	size := int64(0)
    31  	if alloc {
    32  		size += int64(48)
    33  	}
    34  	// field Columns []*vitess.io/vitess/go/vt/sqlparser.ColumnDefinition
    35  	{
    36  		size += hack.RuntimeAllocSize(int64(cap(cached.Columns)) * int64(8))
    37  		for _, elem := range cached.Columns {
    38  			size += elem.CachedSize(true)
    39  		}
    40  	}
    41  	// field After *vitess.io/vitess/go/vt/sqlparser.ColName
    42  	size += cached.After.CachedSize(true)
    43  	return size
    44  }
    45  func (cached *AddConstraintDefinition) CachedSize(alloc bool) int64 {
    46  	if cached == nil {
    47  		return int64(0)
    48  	}
    49  	size := int64(0)
    50  	if alloc {
    51  		size += int64(8)
    52  	}
    53  	// field ConstraintDefinition *vitess.io/vitess/go/vt/sqlparser.ConstraintDefinition
    54  	size += cached.ConstraintDefinition.CachedSize(true)
    55  	return size
    56  }
    57  func (cached *AddIndexDefinition) CachedSize(alloc bool) int64 {
    58  	if cached == nil {
    59  		return int64(0)
    60  	}
    61  	size := int64(0)
    62  	if alloc {
    63  		size += int64(8)
    64  	}
    65  	// field IndexDefinition *vitess.io/vitess/go/vt/sqlparser.IndexDefinition
    66  	size += cached.IndexDefinition.CachedSize(true)
    67  	return size
    68  }
    69  func (cached *AliasedExpr) CachedSize(alloc bool) int64 {
    70  	if cached == nil {
    71  		return int64(0)
    72  	}
    73  	size := int64(0)
    74  	if alloc {
    75  		size += int64(64)
    76  	}
    77  	// field Expr vitess.io/vitess/go/vt/sqlparser.Expr
    78  	if cc, ok := cached.Expr.(cachedObject); ok {
    79  		size += cc.CachedSize(true)
    80  	}
    81  	// field As vitess.io/vitess/go/vt/sqlparser.ColIdent
    82  	size += cached.As.CachedSize(false)
    83  	return size
    84  }
    85  func (cached *AliasedTableExpr) CachedSize(alloc bool) int64 {
    86  	if cached == nil {
    87  		return int64(0)
    88  	}
    89  	size := int64(0)
    90  	if alloc {
    91  		size += int64(96)
    92  	}
    93  	// field Expr vitess.io/vitess/go/vt/sqlparser.SimpleTableExpr
    94  	if cc, ok := cached.Expr.(cachedObject); ok {
    95  		size += cc.CachedSize(true)
    96  	}
    97  	// field Partitions vitess.io/vitess/go/vt/sqlparser.Partitions
    98  	{
    99  		size += hack.RuntimeAllocSize(int64(cap(cached.Partitions)) * int64(40))
   100  		for _, elem := range cached.Partitions {
   101  			size += elem.CachedSize(false)
   102  		}
   103  	}
   104  	// field As vitess.io/vitess/go/vt/sqlparser.TableIdent
   105  	size += cached.As.CachedSize(false)
   106  	// field Hints *vitess.io/vitess/go/vt/sqlparser.IndexHints
   107  	size += cached.Hints.CachedSize(true)
   108  	// field Columns vitess.io/vitess/go/vt/sqlparser.Columns
   109  	{
   110  		size += hack.RuntimeAllocSize(int64(cap(cached.Columns)) * int64(40))
   111  		for _, elem := range cached.Columns {
   112  			size += elem.CachedSize(false)
   113  		}
   114  	}
   115  	return size
   116  }
   117  func (cached *AlterCharset) CachedSize(alloc bool) int64 {
   118  	if cached == nil {
   119  		return int64(0)
   120  	}
   121  	size := int64(0)
   122  	if alloc {
   123  		size += int64(32)
   124  	}
   125  	// field CharacterSet string
   126  	size += hack.RuntimeAllocSize(int64(len(cached.CharacterSet)))
   127  	// field Collate string
   128  	size += hack.RuntimeAllocSize(int64(len(cached.Collate)))
   129  	return size
   130  }
   131  func (cached *AlterColumn) CachedSize(alloc bool) int64 {
   132  	if cached == nil {
   133  		return int64(0)
   134  	}
   135  	size := int64(0)
   136  	if alloc {
   137  		size += int64(32)
   138  	}
   139  	// field Column *vitess.io/vitess/go/vt/sqlparser.ColName
   140  	size += cached.Column.CachedSize(true)
   141  	// field DefaultVal vitess.io/vitess/go/vt/sqlparser.Expr
   142  	if cc, ok := cached.DefaultVal.(cachedObject); ok {
   143  		size += cc.CachedSize(true)
   144  	}
   145  	return size
   146  }
   147  func (cached *AlterDatabase) CachedSize(alloc bool) int64 {
   148  	if cached == nil {
   149  		return int64(0)
   150  	}
   151  	size := int64(0)
   152  	if alloc {
   153  		size += int64(64)
   154  	}
   155  	// field DBName vitess.io/vitess/go/vt/sqlparser.TableIdent
   156  	size += cached.DBName.CachedSize(false)
   157  	// field AlterOptions []vitess.io/vitess/go/vt/sqlparser.CollateAndCharset
   158  	{
   159  		size += hack.RuntimeAllocSize(int64(cap(cached.AlterOptions)) * int64(24))
   160  		for _, elem := range cached.AlterOptions {
   161  			size += elem.CachedSize(false)
   162  		}
   163  	}
   164  	return size
   165  }
   166  func (cached *AlterMigration) CachedSize(alloc bool) int64 {
   167  	if cached == nil {
   168  		return int64(0)
   169  	}
   170  	size := int64(0)
   171  	if alloc {
   172  		size += int64(24)
   173  	}
   174  	// field UUID string
   175  	size += hack.RuntimeAllocSize(int64(len(cached.UUID)))
   176  	return size
   177  }
   178  func (cached *AlterTable) CachedSize(alloc bool) int64 {
   179  	if cached == nil {
   180  		return int64(0)
   181  	}
   182  	size := int64(0)
   183  	if alloc {
   184  		size += int64(96)
   185  	}
   186  	// field Table vitess.io/vitess/go/vt/sqlparser.TableName
   187  	size += cached.Table.CachedSize(false)
   188  	// field AlterOptions []vitess.io/vitess/go/vt/sqlparser.AlterOption
   189  	{
   190  		size += hack.RuntimeAllocSize(int64(cap(cached.AlterOptions)) * int64(16))
   191  		for _, elem := range cached.AlterOptions {
   192  			if cc, ok := elem.(cachedObject); ok {
   193  				size += cc.CachedSize(true)
   194  			}
   195  		}
   196  	}
   197  	// field PartitionSpec *vitess.io/vitess/go/vt/sqlparser.PartitionSpec
   198  	size += cached.PartitionSpec.CachedSize(true)
   199  	// field Comments vitess.io/vitess/go/vt/sqlparser.Comments
   200  	{
   201  		size += hack.RuntimeAllocSize(int64(cap(cached.Comments)) * int64(16))
   202  		for _, elem := range cached.Comments {
   203  			size += hack.RuntimeAllocSize(int64(len(elem)))
   204  		}
   205  	}
   206  	return size
   207  }
   208  func (cached *AlterView) CachedSize(alloc bool) int64 {
   209  	if cached == nil {
   210  		return int64(0)
   211  	}
   212  	size := int64(0)
   213  	if alloc {
   214  		size += int64(144)
   215  	}
   216  	// field ViewName vitess.io/vitess/go/vt/sqlparser.TableName
   217  	size += cached.ViewName.CachedSize(false)
   218  	// field Algorithm string
   219  	size += hack.RuntimeAllocSize(int64(len(cached.Algorithm)))
   220  	// field Definer string
   221  	size += hack.RuntimeAllocSize(int64(len(cached.Definer)))
   222  	// field Security string
   223  	size += hack.RuntimeAllocSize(int64(len(cached.Security)))
   224  	// field Columns vitess.io/vitess/go/vt/sqlparser.Columns
   225  	{
   226  		size += hack.RuntimeAllocSize(int64(cap(cached.Columns)) * int64(40))
   227  		for _, elem := range cached.Columns {
   228  			size += elem.CachedSize(false)
   229  		}
   230  	}
   231  	// field Select vitess.io/vitess/go/vt/sqlparser.SelectStatement
   232  	if cc, ok := cached.Select.(cachedObject); ok {
   233  		size += cc.CachedSize(true)
   234  	}
   235  	// field CheckOption string
   236  	size += hack.RuntimeAllocSize(int64(len(cached.CheckOption)))
   237  	return size
   238  }
   239  func (cached *AlterVschema) CachedSize(alloc bool) int64 {
   240  	if cached == nil {
   241  		return int64(0)
   242  	}
   243  	size := int64(0)
   244  	if alloc {
   245  		size += int64(80)
   246  	}
   247  	// field Table vitess.io/vitess/go/vt/sqlparser.TableName
   248  	size += cached.Table.CachedSize(false)
   249  	// field VindexSpec *vitess.io/vitess/go/vt/sqlparser.VindexSpec
   250  	size += cached.VindexSpec.CachedSize(true)
   251  	// field VindexCols []vitess.io/vitess/go/vt/sqlparser.ColIdent
   252  	{
   253  		size += hack.RuntimeAllocSize(int64(cap(cached.VindexCols)) * int64(40))
   254  		for _, elem := range cached.VindexCols {
   255  			size += elem.CachedSize(false)
   256  		}
   257  	}
   258  	// field AutoIncSpec *vitess.io/vitess/go/vt/sqlparser.AutoIncSpec
   259  	size += cached.AutoIncSpec.CachedSize(true)
   260  	return size
   261  }
   262  func (cached *AndExpr) CachedSize(alloc bool) int64 {
   263  	if cached == nil {
   264  		return int64(0)
   265  	}
   266  	size := int64(0)
   267  	if alloc {
   268  		size += int64(32)
   269  	}
   270  	// field Left vitess.io/vitess/go/vt/sqlparser.Expr
   271  	if cc, ok := cached.Left.(cachedObject); ok {
   272  		size += cc.CachedSize(true)
   273  	}
   274  	// field Right vitess.io/vitess/go/vt/sqlparser.Expr
   275  	if cc, ok := cached.Right.(cachedObject); ok {
   276  		size += cc.CachedSize(true)
   277  	}
   278  	return size
   279  }
   280  func (cached *AutoIncSpec) CachedSize(alloc bool) int64 {
   281  	if cached == nil {
   282  		return int64(0)
   283  	}
   284  	size := int64(0)
   285  	if alloc {
   286  		size += int64(80)
   287  	}
   288  	// field Column vitess.io/vitess/go/vt/sqlparser.ColIdent
   289  	size += cached.Column.CachedSize(false)
   290  	// field Sequence vitess.io/vitess/go/vt/sqlparser.TableName
   291  	size += cached.Sequence.CachedSize(false)
   292  	return size
   293  }
   294  func (cached *BetweenExpr) CachedSize(alloc bool) int64 {
   295  	if cached == nil {
   296  		return int64(0)
   297  	}
   298  	size := int64(0)
   299  	if alloc {
   300  		size += int64(64)
   301  	}
   302  	// field Left vitess.io/vitess/go/vt/sqlparser.Expr
   303  	if cc, ok := cached.Left.(cachedObject); ok {
   304  		size += cc.CachedSize(true)
   305  	}
   306  	// field From vitess.io/vitess/go/vt/sqlparser.Expr
   307  	if cc, ok := cached.From.(cachedObject); ok {
   308  		size += cc.CachedSize(true)
   309  	}
   310  	// field To vitess.io/vitess/go/vt/sqlparser.Expr
   311  	if cc, ok := cached.To.(cachedObject); ok {
   312  		size += cc.CachedSize(true)
   313  	}
   314  	return size
   315  }
   316  func (cached *BinaryExpr) CachedSize(alloc bool) int64 {
   317  	if cached == nil {
   318  		return int64(0)
   319  	}
   320  	size := int64(0)
   321  	if alloc {
   322  		size += int64(48)
   323  	}
   324  	// field Left vitess.io/vitess/go/vt/sqlparser.Expr
   325  	if cc, ok := cached.Left.(cachedObject); ok {
   326  		size += cc.CachedSize(true)
   327  	}
   328  	// field Right vitess.io/vitess/go/vt/sqlparser.Expr
   329  	if cc, ok := cached.Right.(cachedObject); ok {
   330  		size += cc.CachedSize(true)
   331  	}
   332  	return size
   333  }
   334  func (cached *BindVarNeeds) CachedSize(alloc bool) int64 {
   335  	if cached == nil {
   336  		return int64(0)
   337  	}
   338  	size := int64(0)
   339  	if alloc {
   340  		size += int64(80)
   341  	}
   342  	// field NeedFunctionResult []string
   343  	{
   344  		size += hack.RuntimeAllocSize(int64(cap(cached.NeedFunctionResult)) * int64(16))
   345  		for _, elem := range cached.NeedFunctionResult {
   346  			size += hack.RuntimeAllocSize(int64(len(elem)))
   347  		}
   348  	}
   349  	// field NeedSystemVariable []string
   350  	{
   351  		size += hack.RuntimeAllocSize(int64(cap(cached.NeedSystemVariable)) * int64(16))
   352  		for _, elem := range cached.NeedSystemVariable {
   353  			size += hack.RuntimeAllocSize(int64(len(elem)))
   354  		}
   355  	}
   356  	// field NeedUserDefinedVariables []string
   357  	{
   358  		size += hack.RuntimeAllocSize(int64(cap(cached.NeedUserDefinedVariables)) * int64(16))
   359  		for _, elem := range cached.NeedUserDefinedVariables {
   360  			size += hack.RuntimeAllocSize(int64(len(elem)))
   361  		}
   362  	}
   363  	return size
   364  }
   365  func (cached *CallProc) CachedSize(alloc bool) int64 {
   366  	if cached == nil {
   367  		return int64(0)
   368  	}
   369  	size := int64(0)
   370  	if alloc {
   371  		size += int64(64)
   372  	}
   373  	// field Name vitess.io/vitess/go/vt/sqlparser.TableName
   374  	size += cached.Name.CachedSize(false)
   375  	// field Params vitess.io/vitess/go/vt/sqlparser.Exprs
   376  	{
   377  		size += hack.RuntimeAllocSize(int64(cap(cached.Params)) * int64(16))
   378  		for _, elem := range cached.Params {
   379  			if cc, ok := elem.(cachedObject); ok {
   380  				size += cc.CachedSize(true)
   381  			}
   382  		}
   383  	}
   384  	return size
   385  }
   386  func (cached *CaseExpr) CachedSize(alloc bool) int64 {
   387  	if cached == nil {
   388  		return int64(0)
   389  	}
   390  	size := int64(0)
   391  	if alloc {
   392  		size += int64(64)
   393  	}
   394  	// field Expr vitess.io/vitess/go/vt/sqlparser.Expr
   395  	if cc, ok := cached.Expr.(cachedObject); ok {
   396  		size += cc.CachedSize(true)
   397  	}
   398  	// field Whens []*vitess.io/vitess/go/vt/sqlparser.When
   399  	{
   400  		size += hack.RuntimeAllocSize(int64(cap(cached.Whens)) * int64(8))
   401  		for _, elem := range cached.Whens {
   402  			size += elem.CachedSize(true)
   403  		}
   404  	}
   405  	// field Else vitess.io/vitess/go/vt/sqlparser.Expr
   406  	if cc, ok := cached.Else.(cachedObject); ok {
   407  		size += cc.CachedSize(true)
   408  	}
   409  	return size
   410  }
   411  func (cached *ChangeColumn) CachedSize(alloc bool) int64 {
   412  	if cached == nil {
   413  		return int64(0)
   414  	}
   415  	size := int64(0)
   416  	if alloc {
   417  		size += int64(32)
   418  	}
   419  	// field OldColumn *vitess.io/vitess/go/vt/sqlparser.ColName
   420  	size += cached.OldColumn.CachedSize(true)
   421  	// field NewColDefinition *vitess.io/vitess/go/vt/sqlparser.ColumnDefinition
   422  	size += cached.NewColDefinition.CachedSize(true)
   423  	// field After *vitess.io/vitess/go/vt/sqlparser.ColName
   424  	size += cached.After.CachedSize(true)
   425  	return size
   426  }
   427  func (cached *CheckConstraintDefinition) CachedSize(alloc bool) int64 {
   428  	if cached == nil {
   429  		return int64(0)
   430  	}
   431  	size := int64(0)
   432  	if alloc {
   433  		size += int64(24)
   434  	}
   435  	// field Expr vitess.io/vitess/go/vt/sqlparser.Expr
   436  	if cc, ok := cached.Expr.(cachedObject); ok {
   437  		size += cc.CachedSize(true)
   438  	}
   439  	return size
   440  }
   441  func (cached *ColIdent) CachedSize(alloc bool) int64 {
   442  	if cached == nil {
   443  		return int64(0)
   444  	}
   445  	size := int64(0)
   446  	if alloc {
   447  		size += int64(48)
   448  	}
   449  	// field val string
   450  	size += hack.RuntimeAllocSize(int64(len(cached.val)))
   451  	// field lowered string
   452  	size += hack.RuntimeAllocSize(int64(len(cached.lowered)))
   453  	return size
   454  }
   455  func (cached *ColName) CachedSize(alloc bool) int64 {
   456  	if cached == nil {
   457  		return int64(0)
   458  	}
   459  	size := int64(0)
   460  	if alloc {
   461  		size += int64(96)
   462  	}
   463  	// field Name vitess.io/vitess/go/vt/sqlparser.ColIdent
   464  	size += cached.Name.CachedSize(false)
   465  	// field Qualifier vitess.io/vitess/go/vt/sqlparser.TableName
   466  	size += cached.Qualifier.CachedSize(false)
   467  	return size
   468  }
   469  func (cached *CollateAndCharset) CachedSize(alloc bool) int64 {
   470  	if cached == nil {
   471  		return int64(0)
   472  	}
   473  	size := int64(0)
   474  	if alloc {
   475  		size += int64(24)
   476  	}
   477  	// field Value string
   478  	size += hack.RuntimeAllocSize(int64(len(cached.Value)))
   479  	return size
   480  }
   481  func (cached *CollateExpr) CachedSize(alloc bool) int64 {
   482  	if cached == nil {
   483  		return int64(0)
   484  	}
   485  	size := int64(0)
   486  	if alloc {
   487  		size += int64(32)
   488  	}
   489  	// field Expr vitess.io/vitess/go/vt/sqlparser.Expr
   490  	if cc, ok := cached.Expr.(cachedObject); ok {
   491  		size += cc.CachedSize(true)
   492  	}
   493  	// field Collation string
   494  	size += hack.RuntimeAllocSize(int64(len(cached.Collation)))
   495  	return size
   496  }
   497  func (cached *ColumnDefinition) CachedSize(alloc bool) int64 {
   498  	if cached == nil {
   499  		return int64(0)
   500  	}
   501  	size := int64(0)
   502  	if alloc {
   503  		size += int64(128)
   504  	}
   505  	// field Name vitess.io/vitess/go/vt/sqlparser.ColIdent
   506  	size += cached.Name.CachedSize(false)
   507  	// field Type vitess.io/vitess/go/vt/sqlparser.ColumnType
   508  	size += cached.Type.CachedSize(false)
   509  	return size
   510  }
   511  func (cached *ColumnType) CachedSize(alloc bool) int64 {
   512  	if cached == nil {
   513  		return int64(0)
   514  	}
   515  	size := int64(0)
   516  	if alloc {
   517  		size += int64(96)
   518  	}
   519  	// field Type string
   520  	size += hack.RuntimeAllocSize(int64(len(cached.Type)))
   521  	// field Options *vitess.io/vitess/go/vt/sqlparser.ColumnTypeOptions
   522  	size += cached.Options.CachedSize(true)
   523  	// field Length *vitess.io/vitess/go/vt/sqlparser.Literal
   524  	size += cached.Length.CachedSize(true)
   525  	// field Scale *vitess.io/vitess/go/vt/sqlparser.Literal
   526  	size += cached.Scale.CachedSize(true)
   527  	// field Charset string
   528  	size += hack.RuntimeAllocSize(int64(len(cached.Charset)))
   529  	// field EnumValues []string
   530  	{
   531  		size += hack.RuntimeAllocSize(int64(cap(cached.EnumValues)) * int64(16))
   532  		for _, elem := range cached.EnumValues {
   533  			size += hack.RuntimeAllocSize(int64(len(elem)))
   534  		}
   535  	}
   536  	return size
   537  }
   538  func (cached *ColumnTypeOptions) CachedSize(alloc bool) int64 {
   539  	if cached == nil {
   540  		return int64(0)
   541  	}
   542  	size := int64(0)
   543  	if alloc {
   544  		size += int64(112)
   545  	}
   546  	// field Null *bool
   547  	size += hack.RuntimeAllocSize(int64(1))
   548  	// field Default vitess.io/vitess/go/vt/sqlparser.Expr
   549  	if cc, ok := cached.Default.(cachedObject); ok {
   550  		size += cc.CachedSize(true)
   551  	}
   552  	// field OnUpdate vitess.io/vitess/go/vt/sqlparser.Expr
   553  	if cc, ok := cached.OnUpdate.(cachedObject); ok {
   554  		size += cc.CachedSize(true)
   555  	}
   556  	// field As vitess.io/vitess/go/vt/sqlparser.Expr
   557  	if cc, ok := cached.As.(cachedObject); ok {
   558  		size += cc.CachedSize(true)
   559  	}
   560  	// field Comment *vitess.io/vitess/go/vt/sqlparser.Literal
   561  	size += cached.Comment.CachedSize(true)
   562  	// field Collate string
   563  	size += hack.RuntimeAllocSize(int64(len(cached.Collate)))
   564  	// field Reference *vitess.io/vitess/go/vt/sqlparser.ReferenceDefinition
   565  	size += cached.Reference.CachedSize(true)
   566  	return size
   567  }
   568  func (cached *CommonTableExpr) CachedSize(alloc bool) int64 {
   569  	if cached == nil {
   570  		return int64(0)
   571  	}
   572  	size := int64(0)
   573  	if alloc {
   574  		size += int64(48)
   575  	}
   576  	// field TableID vitess.io/vitess/go/vt/sqlparser.TableIdent
   577  	size += cached.TableID.CachedSize(false)
   578  	// field Columns vitess.io/vitess/go/vt/sqlparser.Columns
   579  	{
   580  		size += hack.RuntimeAllocSize(int64(cap(cached.Columns)) * int64(40))
   581  		for _, elem := range cached.Columns {
   582  			size += elem.CachedSize(false)
   583  		}
   584  	}
   585  	// field Subquery *vitess.io/vitess/go/vt/sqlparser.Subquery
   586  	size += cached.Subquery.CachedSize(true)
   587  	return size
   588  }
   589  func (cached *ComparisonExpr) CachedSize(alloc bool) int64 {
   590  	if cached == nil {
   591  		return int64(0)
   592  	}
   593  	size := int64(0)
   594  	if alloc {
   595  		size += int64(64)
   596  	}
   597  	// field Left vitess.io/vitess/go/vt/sqlparser.Expr
   598  	if cc, ok := cached.Left.(cachedObject); ok {
   599  		size += cc.CachedSize(true)
   600  	}
   601  	// field Right vitess.io/vitess/go/vt/sqlparser.Expr
   602  	if cc, ok := cached.Right.(cachedObject); ok {
   603  		size += cc.CachedSize(true)
   604  	}
   605  	// field Escape vitess.io/vitess/go/vt/sqlparser.Expr
   606  	if cc, ok := cached.Escape.(cachedObject); ok {
   607  		size += cc.CachedSize(true)
   608  	}
   609  	return size
   610  }
   611  func (cached *ConstraintDefinition) CachedSize(alloc bool) int64 {
   612  	if cached == nil {
   613  		return int64(0)
   614  	}
   615  	size := int64(0)
   616  	if alloc {
   617  		size += int64(64)
   618  	}
   619  	// field Name vitess.io/vitess/go/vt/sqlparser.ColIdent
   620  	size += cached.Name.CachedSize(false)
   621  	// field Details vitess.io/vitess/go/vt/sqlparser.ConstraintInfo
   622  	if cc, ok := cached.Details.(cachedObject); ok {
   623  		size += cc.CachedSize(true)
   624  	}
   625  	return size
   626  }
   627  func (cached *ConvertExpr) CachedSize(alloc bool) int64 {
   628  	if cached == nil {
   629  		return int64(0)
   630  	}
   631  	size := int64(0)
   632  	if alloc {
   633  		size += int64(24)
   634  	}
   635  	// field Expr vitess.io/vitess/go/vt/sqlparser.Expr
   636  	if cc, ok := cached.Expr.(cachedObject); ok {
   637  		size += cc.CachedSize(true)
   638  	}
   639  	// field Type *vitess.io/vitess/go/vt/sqlparser.ConvertType
   640  	size += cached.Type.CachedSize(true)
   641  	return size
   642  }
   643  func (cached *ConvertType) CachedSize(alloc bool) int64 {
   644  	if cached == nil {
   645  		return int64(0)
   646  	}
   647  	size := int64(0)
   648  	if alloc {
   649  		size += int64(64)
   650  	}
   651  	// field Type string
   652  	size += hack.RuntimeAllocSize(int64(len(cached.Type)))
   653  	// field Length *vitess.io/vitess/go/vt/sqlparser.Literal
   654  	size += cached.Length.CachedSize(true)
   655  	// field Scale *vitess.io/vitess/go/vt/sqlparser.Literal
   656  	size += cached.Scale.CachedSize(true)
   657  	// field Charset string
   658  	size += hack.RuntimeAllocSize(int64(len(cached.Charset)))
   659  	return size
   660  }
   661  func (cached *ConvertUsingExpr) CachedSize(alloc bool) int64 {
   662  	if cached == nil {
   663  		return int64(0)
   664  	}
   665  	size := int64(0)
   666  	if alloc {
   667  		size += int64(32)
   668  	}
   669  	// field Expr vitess.io/vitess/go/vt/sqlparser.Expr
   670  	if cc, ok := cached.Expr.(cachedObject); ok {
   671  		size += cc.CachedSize(true)
   672  	}
   673  	// field Type string
   674  	size += hack.RuntimeAllocSize(int64(len(cached.Type)))
   675  	return size
   676  }
   677  func (cached *CreateDatabase) CachedSize(alloc bool) int64 {
   678  	if cached == nil {
   679  		return int64(0)
   680  	}
   681  	size := int64(0)
   682  	if alloc {
   683  		size += int64(80)
   684  	}
   685  	// field Comments vitess.io/vitess/go/vt/sqlparser.Comments
   686  	{
   687  		size += hack.RuntimeAllocSize(int64(cap(cached.Comments)) * int64(16))
   688  		for _, elem := range cached.Comments {
   689  			size += hack.RuntimeAllocSize(int64(len(elem)))
   690  		}
   691  	}
   692  	// field DBName vitess.io/vitess/go/vt/sqlparser.TableIdent
   693  	size += cached.DBName.CachedSize(false)
   694  	// field CreateOptions []vitess.io/vitess/go/vt/sqlparser.CollateAndCharset
   695  	{
   696  		size += hack.RuntimeAllocSize(int64(cap(cached.CreateOptions)) * int64(24))
   697  		for _, elem := range cached.CreateOptions {
   698  			size += elem.CachedSize(false)
   699  		}
   700  	}
   701  	return size
   702  }
   703  func (cached *CreateTable) CachedSize(alloc bool) int64 {
   704  	if cached == nil {
   705  		return int64(0)
   706  	}
   707  	size := int64(0)
   708  	if alloc {
   709  		size += int64(96)
   710  	}
   711  	// field Table vitess.io/vitess/go/vt/sqlparser.TableName
   712  	size += cached.Table.CachedSize(false)
   713  	// field TableSpec *vitess.io/vitess/go/vt/sqlparser.TableSpec
   714  	size += cached.TableSpec.CachedSize(true)
   715  	// field OptLike *vitess.io/vitess/go/vt/sqlparser.OptLike
   716  	size += cached.OptLike.CachedSize(true)
   717  	// field Comments vitess.io/vitess/go/vt/sqlparser.Comments
   718  	{
   719  		size += hack.RuntimeAllocSize(int64(cap(cached.Comments)) * int64(16))
   720  		for _, elem := range cached.Comments {
   721  			size += hack.RuntimeAllocSize(int64(len(elem)))
   722  		}
   723  	}
   724  	return size
   725  }
   726  func (cached *CreateView) CachedSize(alloc bool) int64 {
   727  	if cached == nil {
   728  		return int64(0)
   729  	}
   730  	size := int64(0)
   731  	if alloc {
   732  		size += int64(144)
   733  	}
   734  	// field ViewName vitess.io/vitess/go/vt/sqlparser.TableName
   735  	size += cached.ViewName.CachedSize(false)
   736  	// field Algorithm string
   737  	size += hack.RuntimeAllocSize(int64(len(cached.Algorithm)))
   738  	// field Definer string
   739  	size += hack.RuntimeAllocSize(int64(len(cached.Definer)))
   740  	// field Security string
   741  	size += hack.RuntimeAllocSize(int64(len(cached.Security)))
   742  	// field Columns vitess.io/vitess/go/vt/sqlparser.Columns
   743  	{
   744  		size += hack.RuntimeAllocSize(int64(cap(cached.Columns)) * int64(40))
   745  		for _, elem := range cached.Columns {
   746  			size += elem.CachedSize(false)
   747  		}
   748  	}
   749  	// field Select vitess.io/vitess/go/vt/sqlparser.SelectStatement
   750  	if cc, ok := cached.Select.(cachedObject); ok {
   751  		size += cc.CachedSize(true)
   752  	}
   753  	// field CheckOption string
   754  	size += hack.RuntimeAllocSize(int64(len(cached.CheckOption)))
   755  	return size
   756  }
   757  func (cached *CurTimeFuncExpr) CachedSize(alloc bool) int64 {
   758  	if cached == nil {
   759  		return int64(0)
   760  	}
   761  	size := int64(0)
   762  	if alloc {
   763  		size += int64(64)
   764  	}
   765  	// field Name vitess.io/vitess/go/vt/sqlparser.ColIdent
   766  	size += cached.Name.CachedSize(false)
   767  	// field Fsp vitess.io/vitess/go/vt/sqlparser.Expr
   768  	if cc, ok := cached.Fsp.(cachedObject); ok {
   769  		size += cc.CachedSize(true)
   770  	}
   771  	return size
   772  }
   773  func (cached *Default) CachedSize(alloc bool) int64 {
   774  	if cached == nil {
   775  		return int64(0)
   776  	}
   777  	size := int64(0)
   778  	if alloc {
   779  		size += int64(16)
   780  	}
   781  	// field ColName string
   782  	size += hack.RuntimeAllocSize(int64(len(cached.ColName)))
   783  	return size
   784  }
   785  func (cached *Delete) CachedSize(alloc bool) int64 {
   786  	if cached == nil {
   787  		return int64(0)
   788  	}
   789  	size := int64(0)
   790  	if alloc {
   791  		size += int64(160)
   792  	}
   793  	// field With *vitess.io/vitess/go/vt/sqlparser.With
   794  	size += cached.With.CachedSize(true)
   795  	// field Comments vitess.io/vitess/go/vt/sqlparser.Comments
   796  	{
   797  		size += hack.RuntimeAllocSize(int64(cap(cached.Comments)) * int64(16))
   798  		for _, elem := range cached.Comments {
   799  			size += hack.RuntimeAllocSize(int64(len(elem)))
   800  		}
   801  	}
   802  	// field Targets vitess.io/vitess/go/vt/sqlparser.TableNames
   803  	{
   804  		size += hack.RuntimeAllocSize(int64(cap(cached.Targets)) * int64(32))
   805  		for _, elem := range cached.Targets {
   806  			size += elem.CachedSize(false)
   807  		}
   808  	}
   809  	// field TableExprs vitess.io/vitess/go/vt/sqlparser.TableExprs
   810  	{
   811  		size += hack.RuntimeAllocSize(int64(cap(cached.TableExprs)) * int64(16))
   812  		for _, elem := range cached.TableExprs {
   813  			if cc, ok := elem.(cachedObject); ok {
   814  				size += cc.CachedSize(true)
   815  			}
   816  		}
   817  	}
   818  	// field Partitions vitess.io/vitess/go/vt/sqlparser.Partitions
   819  	{
   820  		size += hack.RuntimeAllocSize(int64(cap(cached.Partitions)) * int64(40))
   821  		for _, elem := range cached.Partitions {
   822  			size += elem.CachedSize(false)
   823  		}
   824  	}
   825  	// field Where *vitess.io/vitess/go/vt/sqlparser.Where
   826  	size += cached.Where.CachedSize(true)
   827  	// field OrderBy vitess.io/vitess/go/vt/sqlparser.OrderBy
   828  	{
   829  		size += hack.RuntimeAllocSize(int64(cap(cached.OrderBy)) * int64(8))
   830  		for _, elem := range cached.OrderBy {
   831  			size += elem.CachedSize(true)
   832  		}
   833  	}
   834  	// field Limit *vitess.io/vitess/go/vt/sqlparser.Limit
   835  	size += cached.Limit.CachedSize(true)
   836  	return size
   837  }
   838  func (cached *DerivedTable) CachedSize(alloc bool) int64 {
   839  	if cached == nil {
   840  		return int64(0)
   841  	}
   842  	size := int64(0)
   843  	if alloc {
   844  		size += int64(16)
   845  	}
   846  	// field Select vitess.io/vitess/go/vt/sqlparser.SelectStatement
   847  	if cc, ok := cached.Select.(cachedObject); ok {
   848  		size += cc.CachedSize(true)
   849  	}
   850  	return size
   851  }
   852  func (cached *DropColumn) CachedSize(alloc bool) int64 {
   853  	if cached == nil {
   854  		return int64(0)
   855  	}
   856  	size := int64(0)
   857  	if alloc {
   858  		size += int64(8)
   859  	}
   860  	// field Name *vitess.io/vitess/go/vt/sqlparser.ColName
   861  	size += cached.Name.CachedSize(true)
   862  	return size
   863  }
   864  func (cached *DropDatabase) CachedSize(alloc bool) int64 {
   865  	if cached == nil {
   866  		return int64(0)
   867  	}
   868  	size := int64(0)
   869  	if alloc {
   870  		size += int64(48)
   871  	}
   872  	// field Comments vitess.io/vitess/go/vt/sqlparser.Comments
   873  	{
   874  		size += hack.RuntimeAllocSize(int64(cap(cached.Comments)) * int64(16))
   875  		for _, elem := range cached.Comments {
   876  			size += hack.RuntimeAllocSize(int64(len(elem)))
   877  		}
   878  	}
   879  	// field DBName vitess.io/vitess/go/vt/sqlparser.TableIdent
   880  	size += cached.DBName.CachedSize(false)
   881  	return size
   882  }
   883  func (cached *DropKey) CachedSize(alloc bool) int64 {
   884  	if cached == nil {
   885  		return int64(0)
   886  	}
   887  	size := int64(0)
   888  	if alloc {
   889  		size += int64(48)
   890  	}
   891  	// field Name vitess.io/vitess/go/vt/sqlparser.ColIdent
   892  	size += cached.Name.CachedSize(false)
   893  	return size
   894  }
   895  func (cached *DropTable) CachedSize(alloc bool) int64 {
   896  	if cached == nil {
   897  		return int64(0)
   898  	}
   899  	size := int64(0)
   900  	if alloc {
   901  		size += int64(64)
   902  	}
   903  	// field FromTables vitess.io/vitess/go/vt/sqlparser.TableNames
   904  	{
   905  		size += hack.RuntimeAllocSize(int64(cap(cached.FromTables)) * int64(32))
   906  		for _, elem := range cached.FromTables {
   907  			size += elem.CachedSize(false)
   908  		}
   909  	}
   910  	// field Comments vitess.io/vitess/go/vt/sqlparser.Comments
   911  	{
   912  		size += hack.RuntimeAllocSize(int64(cap(cached.Comments)) * int64(16))
   913  		for _, elem := range cached.Comments {
   914  			size += hack.RuntimeAllocSize(int64(len(elem)))
   915  		}
   916  	}
   917  	return size
   918  }
   919  func (cached *DropView) CachedSize(alloc bool) int64 {
   920  	if cached == nil {
   921  		return int64(0)
   922  	}
   923  	size := int64(0)
   924  	if alloc {
   925  		size += int64(32)
   926  	}
   927  	// field FromTables vitess.io/vitess/go/vt/sqlparser.TableNames
   928  	{
   929  		size += hack.RuntimeAllocSize(int64(cap(cached.FromTables)) * int64(32))
   930  		for _, elem := range cached.FromTables {
   931  			size += elem.CachedSize(false)
   932  		}
   933  	}
   934  	return size
   935  }
   936  func (cached *ExistsExpr) CachedSize(alloc bool) int64 {
   937  	if cached == nil {
   938  		return int64(0)
   939  	}
   940  	size := int64(0)
   941  	if alloc {
   942  		size += int64(8)
   943  	}
   944  	// field Subquery *vitess.io/vitess/go/vt/sqlparser.Subquery
   945  	size += cached.Subquery.CachedSize(true)
   946  	return size
   947  }
   948  func (cached *ExplainStmt) CachedSize(alloc bool) int64 {
   949  	if cached == nil {
   950  		return int64(0)
   951  	}
   952  	size := int64(0)
   953  	if alloc {
   954  		size += int64(24)
   955  	}
   956  	// field Statement vitess.io/vitess/go/vt/sqlparser.Statement
   957  	if cc, ok := cached.Statement.(cachedObject); ok {
   958  		size += cc.CachedSize(true)
   959  	}
   960  	return size
   961  }
   962  func (cached *ExplainTab) CachedSize(alloc bool) int64 {
   963  	if cached == nil {
   964  		return int64(0)
   965  	}
   966  	size := int64(0)
   967  	if alloc {
   968  		size += int64(48)
   969  	}
   970  	// field Table vitess.io/vitess/go/vt/sqlparser.TableName
   971  	size += cached.Table.CachedSize(false)
   972  	// field Wild string
   973  	size += hack.RuntimeAllocSize(int64(len(cached.Wild)))
   974  	return size
   975  }
   976  func (cached *ExprOrColumns) CachedSize(alloc bool) int64 {
   977  	if cached == nil {
   978  		return int64(0)
   979  	}
   980  	size := int64(0)
   981  	if alloc {
   982  		size += int64(48)
   983  	}
   984  	// field Expr vitess.io/vitess/go/vt/sqlparser.Expr
   985  	if cc, ok := cached.Expr.(cachedObject); ok {
   986  		size += cc.CachedSize(true)
   987  	}
   988  	// field ColumnList vitess.io/vitess/go/vt/sqlparser.Columns
   989  	{
   990  		size += hack.RuntimeAllocSize(int64(cap(cached.ColumnList)) * int64(40))
   991  		for _, elem := range cached.ColumnList {
   992  			size += elem.CachedSize(false)
   993  		}
   994  	}
   995  	return size
   996  }
   997  func (cached *ExtractFuncExpr) CachedSize(alloc bool) int64 {
   998  	if cached == nil {
   999  		return int64(0)
  1000  	}
  1001  	size := int64(0)
  1002  	if alloc {
  1003  		size += int64(24)
  1004  	}
  1005  	// field Expr vitess.io/vitess/go/vt/sqlparser.Expr
  1006  	if cc, ok := cached.Expr.(cachedObject); ok {
  1007  		size += cc.CachedSize(true)
  1008  	}
  1009  	return size
  1010  }
  1011  func (cached *ExtractedSubquery) CachedSize(alloc bool) int64 {
  1012  	if cached == nil {
  1013  		return int64(0)
  1014  	}
  1015  	size := int64(0)
  1016  	if alloc {
  1017  		size += int64(112)
  1018  	}
  1019  	// field Original vitess.io/vitess/go/vt/sqlparser.Expr
  1020  	if cc, ok := cached.Original.(cachedObject); ok {
  1021  		size += cc.CachedSize(true)
  1022  	}
  1023  	// field Subquery *vitess.io/vitess/go/vt/sqlparser.Subquery
  1024  	size += cached.Subquery.CachedSize(true)
  1025  	// field OtherSide vitess.io/vitess/go/vt/sqlparser.Expr
  1026  	if cc, ok := cached.OtherSide.(cachedObject); ok {
  1027  		size += cc.CachedSize(true)
  1028  	}
  1029  	// field hasValuesArg string
  1030  	size += hack.RuntimeAllocSize(int64(len(cached.hasValuesArg)))
  1031  	// field argName string
  1032  	size += hack.RuntimeAllocSize(int64(len(cached.argName)))
  1033  	// field alternative vitess.io/vitess/go/vt/sqlparser.Expr
  1034  	if cc, ok := cached.alternative.(cachedObject); ok {
  1035  		size += cc.CachedSize(true)
  1036  	}
  1037  	return size
  1038  }
  1039  func (cached *Flush) CachedSize(alloc bool) int64 {
  1040  	if cached == nil {
  1041  		return int64(0)
  1042  	}
  1043  	size := int64(0)
  1044  	if alloc {
  1045  		size += int64(64)
  1046  	}
  1047  	// field FlushOptions []string
  1048  	{
  1049  		size += hack.RuntimeAllocSize(int64(cap(cached.FlushOptions)) * int64(16))
  1050  		for _, elem := range cached.FlushOptions {
  1051  			size += hack.RuntimeAllocSize(int64(len(elem)))
  1052  		}
  1053  	}
  1054  	// field TableNames vitess.io/vitess/go/vt/sqlparser.TableNames
  1055  	{
  1056  		size += hack.RuntimeAllocSize(int64(cap(cached.TableNames)) * int64(32))
  1057  		for _, elem := range cached.TableNames {
  1058  			size += elem.CachedSize(false)
  1059  		}
  1060  	}
  1061  	return size
  1062  }
  1063  func (cached *ForeignKeyDefinition) CachedSize(alloc bool) int64 {
  1064  	if cached == nil {
  1065  		return int64(0)
  1066  	}
  1067  	size := int64(0)
  1068  	if alloc {
  1069  		size += int64(80)
  1070  	}
  1071  	// field Source vitess.io/vitess/go/vt/sqlparser.Columns
  1072  	{
  1073  		size += hack.RuntimeAllocSize(int64(cap(cached.Source)) * int64(40))
  1074  		for _, elem := range cached.Source {
  1075  			size += elem.CachedSize(false)
  1076  		}
  1077  	}
  1078  	// field IndexName vitess.io/vitess/go/vt/sqlparser.ColIdent
  1079  	size += cached.IndexName.CachedSize(false)
  1080  	// field ReferenceDefinition *vitess.io/vitess/go/vt/sqlparser.ReferenceDefinition
  1081  	size += cached.ReferenceDefinition.CachedSize(true)
  1082  	return size
  1083  }
  1084  func (cached *FuncExpr) CachedSize(alloc bool) int64 {
  1085  	if cached == nil {
  1086  		return int64(0)
  1087  	}
  1088  	size := int64(0)
  1089  	if alloc {
  1090  		size += int64(96)
  1091  	}
  1092  	// field Qualifier vitess.io/vitess/go/vt/sqlparser.TableIdent
  1093  	size += cached.Qualifier.CachedSize(false)
  1094  	// field Name vitess.io/vitess/go/vt/sqlparser.ColIdent
  1095  	size += cached.Name.CachedSize(false)
  1096  	// field Exprs vitess.io/vitess/go/vt/sqlparser.SelectExprs
  1097  	{
  1098  		size += hack.RuntimeAllocSize(int64(cap(cached.Exprs)) * int64(16))
  1099  		for _, elem := range cached.Exprs {
  1100  			if cc, ok := elem.(cachedObject); ok {
  1101  				size += cc.CachedSize(true)
  1102  			}
  1103  		}
  1104  	}
  1105  	return size
  1106  }
  1107  func (cached *GroupConcatExpr) CachedSize(alloc bool) int64 {
  1108  	if cached == nil {
  1109  		return int64(0)
  1110  	}
  1111  	size := int64(0)
  1112  	if alloc {
  1113  		size += int64(80)
  1114  	}
  1115  	// field Exprs vitess.io/vitess/go/vt/sqlparser.SelectExprs
  1116  	{
  1117  		size += hack.RuntimeAllocSize(int64(cap(cached.Exprs)) * int64(16))
  1118  		for _, elem := range cached.Exprs {
  1119  			if cc, ok := elem.(cachedObject); ok {
  1120  				size += cc.CachedSize(true)
  1121  			}
  1122  		}
  1123  	}
  1124  	// field OrderBy vitess.io/vitess/go/vt/sqlparser.OrderBy
  1125  	{
  1126  		size += hack.RuntimeAllocSize(int64(cap(cached.OrderBy)) * int64(8))
  1127  		for _, elem := range cached.OrderBy {
  1128  			size += elem.CachedSize(true)
  1129  		}
  1130  	}
  1131  	// field Separator string
  1132  	size += hack.RuntimeAllocSize(int64(len(cached.Separator)))
  1133  	// field Limit *vitess.io/vitess/go/vt/sqlparser.Limit
  1134  	size += cached.Limit.CachedSize(true)
  1135  	return size
  1136  }
  1137  func (cached *IndexColumn) CachedSize(alloc bool) int64 {
  1138  	if cached == nil {
  1139  		return int64(0)
  1140  	}
  1141  	size := int64(0)
  1142  	if alloc {
  1143  		size += int64(64)
  1144  	}
  1145  	// field Column vitess.io/vitess/go/vt/sqlparser.ColIdent
  1146  	size += cached.Column.CachedSize(false)
  1147  	// field Length *vitess.io/vitess/go/vt/sqlparser.Literal
  1148  	size += cached.Length.CachedSize(true)
  1149  	return size
  1150  }
  1151  func (cached *IndexDefinition) CachedSize(alloc bool) int64 {
  1152  	if cached == nil {
  1153  		return int64(0)
  1154  	}
  1155  	size := int64(0)
  1156  	if alloc {
  1157  		size += int64(64)
  1158  	}
  1159  	// field Info *vitess.io/vitess/go/vt/sqlparser.IndexInfo
  1160  	size += cached.Info.CachedSize(true)
  1161  	// field Columns []*vitess.io/vitess/go/vt/sqlparser.IndexColumn
  1162  	{
  1163  		size += hack.RuntimeAllocSize(int64(cap(cached.Columns)) * int64(8))
  1164  		for _, elem := range cached.Columns {
  1165  			size += elem.CachedSize(true)
  1166  		}
  1167  	}
  1168  	// field Options []*vitess.io/vitess/go/vt/sqlparser.IndexOption
  1169  	{
  1170  		size += hack.RuntimeAllocSize(int64(cap(cached.Options)) * int64(8))
  1171  		for _, elem := range cached.Options {
  1172  			size += elem.CachedSize(true)
  1173  		}
  1174  	}
  1175  	return size
  1176  }
  1177  func (cached *IndexHints) CachedSize(alloc bool) int64 {
  1178  	if cached == nil {
  1179  		return int64(0)
  1180  	}
  1181  	size := int64(0)
  1182  	if alloc {
  1183  		size += int64(32)
  1184  	}
  1185  	// field Indexes []vitess.io/vitess/go/vt/sqlparser.ColIdent
  1186  	{
  1187  		size += hack.RuntimeAllocSize(int64(cap(cached.Indexes)) * int64(40))
  1188  		for _, elem := range cached.Indexes {
  1189  			size += elem.CachedSize(false)
  1190  		}
  1191  	}
  1192  	return size
  1193  }
  1194  func (cached *IndexInfo) CachedSize(alloc bool) int64 {
  1195  	if cached == nil {
  1196  		return int64(0)
  1197  	}
  1198  	size := int64(0)
  1199  	if alloc {
  1200  		size += int64(112)
  1201  	}
  1202  	// field Type string
  1203  	size += hack.RuntimeAllocSize(int64(len(cached.Type)))
  1204  	// field Name vitess.io/vitess/go/vt/sqlparser.ColIdent
  1205  	size += cached.Name.CachedSize(false)
  1206  	// field ConstraintName vitess.io/vitess/go/vt/sqlparser.ColIdent
  1207  	size += cached.ConstraintName.CachedSize(false)
  1208  	return size
  1209  }
  1210  func (cached *IndexOption) CachedSize(alloc bool) int64 {
  1211  	if cached == nil {
  1212  		return int64(0)
  1213  	}
  1214  	size := int64(0)
  1215  	if alloc {
  1216  		size += int64(48)
  1217  	}
  1218  	// field Name string
  1219  	size += hack.RuntimeAllocSize(int64(len(cached.Name)))
  1220  	// field Value *vitess.io/vitess/go/vt/sqlparser.Literal
  1221  	size += cached.Value.CachedSize(true)
  1222  	// field String string
  1223  	size += hack.RuntimeAllocSize(int64(len(cached.String)))
  1224  	return size
  1225  }
  1226  func (cached *Insert) CachedSize(alloc bool) int64 {
  1227  	if cached == nil {
  1228  		return int64(0)
  1229  	}
  1230  	size := int64(0)
  1231  	if alloc {
  1232  		size += int64(160)
  1233  	}
  1234  	// field Comments vitess.io/vitess/go/vt/sqlparser.Comments
  1235  	{
  1236  		size += hack.RuntimeAllocSize(int64(cap(cached.Comments)) * int64(16))
  1237  		for _, elem := range cached.Comments {
  1238  			size += hack.RuntimeAllocSize(int64(len(elem)))
  1239  		}
  1240  	}
  1241  	// field Table vitess.io/vitess/go/vt/sqlparser.TableName
  1242  	size += cached.Table.CachedSize(false)
  1243  	// field Partitions vitess.io/vitess/go/vt/sqlparser.Partitions
  1244  	{
  1245  		size += hack.RuntimeAllocSize(int64(cap(cached.Partitions)) * int64(40))
  1246  		for _, elem := range cached.Partitions {
  1247  			size += elem.CachedSize(false)
  1248  		}
  1249  	}
  1250  	// field Columns vitess.io/vitess/go/vt/sqlparser.Columns
  1251  	{
  1252  		size += hack.RuntimeAllocSize(int64(cap(cached.Columns)) * int64(40))
  1253  		for _, elem := range cached.Columns {
  1254  			size += elem.CachedSize(false)
  1255  		}
  1256  	}
  1257  	// field Rows vitess.io/vitess/go/vt/sqlparser.InsertRows
  1258  	if cc, ok := cached.Rows.(cachedObject); ok {
  1259  		size += cc.CachedSize(true)
  1260  	}
  1261  	// field OnDup vitess.io/vitess/go/vt/sqlparser.OnDup
  1262  	{
  1263  		size += hack.RuntimeAllocSize(int64(cap(cached.OnDup)) * int64(8))
  1264  		for _, elem := range cached.OnDup {
  1265  			size += elem.CachedSize(true)
  1266  		}
  1267  	}
  1268  	return size
  1269  }
  1270  func (cached *IntervalExpr) CachedSize(alloc bool) int64 {
  1271  	if cached == nil {
  1272  		return int64(0)
  1273  	}
  1274  	size := int64(0)
  1275  	if alloc {
  1276  		size += int64(32)
  1277  	}
  1278  	// field Expr vitess.io/vitess/go/vt/sqlparser.Expr
  1279  	if cc, ok := cached.Expr.(cachedObject); ok {
  1280  		size += cc.CachedSize(true)
  1281  	}
  1282  	// field Unit string
  1283  	size += hack.RuntimeAllocSize(int64(len(cached.Unit)))
  1284  	return size
  1285  }
  1286  func (cached *IntroducerExpr) CachedSize(alloc bool) int64 {
  1287  	if cached == nil {
  1288  		return int64(0)
  1289  	}
  1290  	size := int64(0)
  1291  	if alloc {
  1292  		size += int64(32)
  1293  	}
  1294  	// field CharacterSet string
  1295  	size += hack.RuntimeAllocSize(int64(len(cached.CharacterSet)))
  1296  	// field Expr vitess.io/vitess/go/vt/sqlparser.Expr
  1297  	if cc, ok := cached.Expr.(cachedObject); ok {
  1298  		size += cc.CachedSize(true)
  1299  	}
  1300  	return size
  1301  }
  1302  func (cached *IsExpr) CachedSize(alloc bool) int64 {
  1303  	if cached == nil {
  1304  		return int64(0)
  1305  	}
  1306  	size := int64(0)
  1307  	if alloc {
  1308  		size += int64(24)
  1309  	}
  1310  	// field Left vitess.io/vitess/go/vt/sqlparser.Expr
  1311  	if cc, ok := cached.Left.(cachedObject); ok {
  1312  		size += cc.CachedSize(true)
  1313  	}
  1314  	return size
  1315  }
  1316  func (cached *JoinCondition) CachedSize(alloc bool) int64 {
  1317  	if cached == nil {
  1318  		return int64(0)
  1319  	}
  1320  	size := int64(0)
  1321  	if alloc {
  1322  		size += int64(48)
  1323  	}
  1324  	// field On vitess.io/vitess/go/vt/sqlparser.Expr
  1325  	if cc, ok := cached.On.(cachedObject); ok {
  1326  		size += cc.CachedSize(true)
  1327  	}
  1328  	// field Using vitess.io/vitess/go/vt/sqlparser.Columns
  1329  	{
  1330  		size += hack.RuntimeAllocSize(int64(cap(cached.Using)) * int64(40))
  1331  		for _, elem := range cached.Using {
  1332  			size += elem.CachedSize(false)
  1333  		}
  1334  	}
  1335  	return size
  1336  }
  1337  func (cached *JoinTableExpr) CachedSize(alloc bool) int64 {
  1338  	if cached == nil {
  1339  		return int64(0)
  1340  	}
  1341  	size := int64(0)
  1342  	if alloc {
  1343  		size += int64(48)
  1344  	}
  1345  	// field LeftExpr vitess.io/vitess/go/vt/sqlparser.TableExpr
  1346  	if cc, ok := cached.LeftExpr.(cachedObject); ok {
  1347  		size += cc.CachedSize(true)
  1348  	}
  1349  	// field RightExpr vitess.io/vitess/go/vt/sqlparser.TableExpr
  1350  	if cc, ok := cached.RightExpr.(cachedObject); ok {
  1351  		size += cc.CachedSize(true)
  1352  	}
  1353  	// field Condition *vitess.io/vitess/go/vt/sqlparser.JoinCondition
  1354  	size += cached.Condition.CachedSize(true)
  1355  	return size
  1356  }
  1357  func (cached *KeyState) CachedSize(alloc bool) int64 {
  1358  	if cached == nil {
  1359  		return int64(0)
  1360  	}
  1361  	size := int64(0)
  1362  	if alloc {
  1363  		size += int64(8)
  1364  	}
  1365  	return size
  1366  }
  1367  func (cached *Limit) CachedSize(alloc bool) int64 {
  1368  	if cached == nil {
  1369  		return int64(0)
  1370  	}
  1371  	size := int64(0)
  1372  	if alloc {
  1373  		size += int64(32)
  1374  	}
  1375  	// field Offset vitess.io/vitess/go/vt/sqlparser.Expr
  1376  	if cc, ok := cached.Offset.(cachedObject); ok {
  1377  		size += cc.CachedSize(true)
  1378  	}
  1379  	// field Rowcount vitess.io/vitess/go/vt/sqlparser.Expr
  1380  	if cc, ok := cached.Rowcount.(cachedObject); ok {
  1381  		size += cc.CachedSize(true)
  1382  	}
  1383  	return size
  1384  }
  1385  func (cached *Literal) CachedSize(alloc bool) int64 {
  1386  	if cached == nil {
  1387  		return int64(0)
  1388  	}
  1389  	size := int64(0)
  1390  	if alloc {
  1391  		size += int64(24)
  1392  	}
  1393  	// field Val string
  1394  	size += hack.RuntimeAllocSize(int64(len(cached.Val)))
  1395  	return size
  1396  }
  1397  func (cached *LockOption) CachedSize(alloc bool) int64 {
  1398  	if cached == nil {
  1399  		return int64(0)
  1400  	}
  1401  	size := int64(0)
  1402  	if alloc {
  1403  		size += int64(8)
  1404  	}
  1405  	return size
  1406  }
  1407  func (cached *LockTables) CachedSize(alloc bool) int64 {
  1408  	if cached == nil {
  1409  		return int64(0)
  1410  	}
  1411  	size := int64(0)
  1412  	if alloc {
  1413  		size += int64(24)
  1414  	}
  1415  	// field Tables vitess.io/vitess/go/vt/sqlparser.TableAndLockTypes
  1416  	{
  1417  		size += hack.RuntimeAllocSize(int64(cap(cached.Tables)) * int64(8))
  1418  		for _, elem := range cached.Tables {
  1419  			size += elem.CachedSize(true)
  1420  		}
  1421  	}
  1422  	return size
  1423  }
  1424  func (cached *MatchExpr) CachedSize(alloc bool) int64 {
  1425  	if cached == nil {
  1426  		return int64(0)
  1427  	}
  1428  	size := int64(0)
  1429  	if alloc {
  1430  		size += int64(48)
  1431  	}
  1432  	// field Columns vitess.io/vitess/go/vt/sqlparser.SelectExprs
  1433  	{
  1434  		size += hack.RuntimeAllocSize(int64(cap(cached.Columns)) * int64(16))
  1435  		for _, elem := range cached.Columns {
  1436  			if cc, ok := elem.(cachedObject); ok {
  1437  				size += cc.CachedSize(true)
  1438  			}
  1439  		}
  1440  	}
  1441  	// field Expr vitess.io/vitess/go/vt/sqlparser.Expr
  1442  	if cc, ok := cached.Expr.(cachedObject); ok {
  1443  		size += cc.CachedSize(true)
  1444  	}
  1445  	return size
  1446  }
  1447  func (cached *ModifyColumn) CachedSize(alloc bool) int64 {
  1448  	if cached == nil {
  1449  		return int64(0)
  1450  	}
  1451  	size := int64(0)
  1452  	if alloc {
  1453  		size += int64(24)
  1454  	}
  1455  	// field NewColDefinition *vitess.io/vitess/go/vt/sqlparser.ColumnDefinition
  1456  	size += cached.NewColDefinition.CachedSize(true)
  1457  	// field After *vitess.io/vitess/go/vt/sqlparser.ColName
  1458  	size += cached.After.CachedSize(true)
  1459  	return size
  1460  }
  1461  func (cached *Nextval) CachedSize(alloc bool) int64 {
  1462  	if cached == nil {
  1463  		return int64(0)
  1464  	}
  1465  	size := int64(0)
  1466  	if alloc {
  1467  		size += int64(16)
  1468  	}
  1469  	// field Expr vitess.io/vitess/go/vt/sqlparser.Expr
  1470  	if cc, ok := cached.Expr.(cachedObject); ok {
  1471  		size += cc.CachedSize(true)
  1472  	}
  1473  	return size
  1474  }
  1475  func (cached *NotExpr) CachedSize(alloc bool) int64 {
  1476  	if cached == nil {
  1477  		return int64(0)
  1478  	}
  1479  	size := int64(0)
  1480  	if alloc {
  1481  		size += int64(16)
  1482  	}
  1483  	// field Expr vitess.io/vitess/go/vt/sqlparser.Expr
  1484  	if cc, ok := cached.Expr.(cachedObject); ok {
  1485  		size += cc.CachedSize(true)
  1486  	}
  1487  	return size
  1488  }
  1489  func (cached *OptLike) CachedSize(alloc bool) int64 {
  1490  	if cached == nil {
  1491  		return int64(0)
  1492  	}
  1493  	size := int64(0)
  1494  	if alloc {
  1495  		size += int64(32)
  1496  	}
  1497  	// field LikeTable vitess.io/vitess/go/vt/sqlparser.TableName
  1498  	size += cached.LikeTable.CachedSize(false)
  1499  	return size
  1500  }
  1501  func (cached *OrExpr) CachedSize(alloc bool) int64 {
  1502  	if cached == nil {
  1503  		return int64(0)
  1504  	}
  1505  	size := int64(0)
  1506  	if alloc {
  1507  		size += int64(32)
  1508  	}
  1509  	// field Left vitess.io/vitess/go/vt/sqlparser.Expr
  1510  	if cc, ok := cached.Left.(cachedObject); ok {
  1511  		size += cc.CachedSize(true)
  1512  	}
  1513  	// field Right vitess.io/vitess/go/vt/sqlparser.Expr
  1514  	if cc, ok := cached.Right.(cachedObject); ok {
  1515  		size += cc.CachedSize(true)
  1516  	}
  1517  	return size
  1518  }
  1519  func (cached *Order) CachedSize(alloc bool) int64 {
  1520  	if cached == nil {
  1521  		return int64(0)
  1522  	}
  1523  	size := int64(0)
  1524  	if alloc {
  1525  		size += int64(24)
  1526  	}
  1527  	// field Expr vitess.io/vitess/go/vt/sqlparser.Expr
  1528  	if cc, ok := cached.Expr.(cachedObject); ok {
  1529  		size += cc.CachedSize(true)
  1530  	}
  1531  	return size
  1532  }
  1533  func (cached *OrderByOption) CachedSize(alloc bool) int64 {
  1534  	if cached == nil {
  1535  		return int64(0)
  1536  	}
  1537  	size := int64(0)
  1538  	if alloc {
  1539  		size += int64(24)
  1540  	}
  1541  	// field Cols vitess.io/vitess/go/vt/sqlparser.Columns
  1542  	{
  1543  		size += hack.RuntimeAllocSize(int64(cap(cached.Cols)) * int64(40))
  1544  		for _, elem := range cached.Cols {
  1545  			size += elem.CachedSize(false)
  1546  		}
  1547  	}
  1548  	return size
  1549  }
  1550  func (cached *ParenTableExpr) CachedSize(alloc bool) int64 {
  1551  	if cached == nil {
  1552  		return int64(0)
  1553  	}
  1554  	size := int64(0)
  1555  	if alloc {
  1556  		size += int64(24)
  1557  	}
  1558  	// field Exprs vitess.io/vitess/go/vt/sqlparser.TableExprs
  1559  	{
  1560  		size += hack.RuntimeAllocSize(int64(cap(cached.Exprs)) * int64(16))
  1561  		for _, elem := range cached.Exprs {
  1562  			if cc, ok := elem.(cachedObject); ok {
  1563  				size += cc.CachedSize(true)
  1564  			}
  1565  		}
  1566  	}
  1567  	return size
  1568  }
  1569  func (cached *ParsedQuery) CachedSize(alloc bool) int64 {
  1570  	if cached == nil {
  1571  		return int64(0)
  1572  	}
  1573  	size := int64(0)
  1574  	if alloc {
  1575  		size += int64(48)
  1576  	}
  1577  	// field Query string
  1578  	size += hack.RuntimeAllocSize(int64(len(cached.Query)))
  1579  	// field bindLocations []vitess.io/vitess/go/vt/sqlparser.bindLocation
  1580  	{
  1581  		size += hack.RuntimeAllocSize(int64(cap(cached.bindLocations)) * int64(16))
  1582  	}
  1583  	return size
  1584  }
  1585  func (cached *PartitionDefinition) CachedSize(alloc bool) int64 {
  1586  	if cached == nil {
  1587  		return int64(0)
  1588  	}
  1589  	size := int64(0)
  1590  	if alloc {
  1591  		size += int64(64)
  1592  	}
  1593  	// field Name vitess.io/vitess/go/vt/sqlparser.ColIdent
  1594  	size += cached.Name.CachedSize(false)
  1595  	// field Limit vitess.io/vitess/go/vt/sqlparser.Expr
  1596  	if cc, ok := cached.Limit.(cachedObject); ok {
  1597  		size += cc.CachedSize(true)
  1598  	}
  1599  	return size
  1600  }
  1601  func (cached *PartitionOption) CachedSize(alloc bool) int64 {
  1602  	if cached == nil {
  1603  		return int64(0)
  1604  	}
  1605  	size := int64(0)
  1606  	if alloc {
  1607  		size += int64(160)
  1608  	}
  1609  	// field Linear string
  1610  	size += hack.RuntimeAllocSize(int64(len(cached.Linear)))
  1611  	// field KeyAlgorithm string
  1612  	size += hack.RuntimeAllocSize(int64(len(cached.KeyAlgorithm)))
  1613  	// field KeyColList vitess.io/vitess/go/vt/sqlparser.Columns
  1614  	{
  1615  		size += hack.RuntimeAllocSize(int64(cap(cached.KeyColList)) * int64(40))
  1616  		for _, elem := range cached.KeyColList {
  1617  			size += elem.CachedSize(false)
  1618  		}
  1619  	}
  1620  	// field RangeOrList string
  1621  	size += hack.RuntimeAllocSize(int64(len(cached.RangeOrList)))
  1622  	// field ExprOrCol *vitess.io/vitess/go/vt/sqlparser.ExprOrColumns
  1623  	size += cached.ExprOrCol.CachedSize(true)
  1624  	// field Expr vitess.io/vitess/go/vt/sqlparser.Expr
  1625  	if cc, ok := cached.Expr.(cachedObject); ok {
  1626  		size += cc.CachedSize(true)
  1627  	}
  1628  	// field Partitions string
  1629  	size += hack.RuntimeAllocSize(int64(len(cached.Partitions)))
  1630  	// field SubPartition *vitess.io/vitess/go/vt/sqlparser.SubPartition
  1631  	size += cached.SubPartition.CachedSize(true)
  1632  	// field Definitions []*vitess.io/vitess/go/vt/sqlparser.PartitionDefinition
  1633  	{
  1634  		size += hack.RuntimeAllocSize(int64(cap(cached.Definitions)) * int64(8))
  1635  		for _, elem := range cached.Definitions {
  1636  			size += elem.CachedSize(true)
  1637  		}
  1638  	}
  1639  	return size
  1640  }
  1641  func (cached *PartitionSpec) CachedSize(alloc bool) int64 {
  1642  	if cached == nil {
  1643  		return int64(0)
  1644  	}
  1645  	size := int64(0)
  1646  	if alloc {
  1647  		size += int64(112)
  1648  	}
  1649  	// field Names vitess.io/vitess/go/vt/sqlparser.Partitions
  1650  	{
  1651  		size += hack.RuntimeAllocSize(int64(cap(cached.Names)) * int64(40))
  1652  		for _, elem := range cached.Names {
  1653  			size += elem.CachedSize(false)
  1654  		}
  1655  	}
  1656  	// field Number *vitess.io/vitess/go/vt/sqlparser.Literal
  1657  	size += cached.Number.CachedSize(true)
  1658  	// field TableName vitess.io/vitess/go/vt/sqlparser.TableName
  1659  	size += cached.TableName.CachedSize(false)
  1660  	// field Definitions []*vitess.io/vitess/go/vt/sqlparser.PartitionDefinition
  1661  	{
  1662  		size += hack.RuntimeAllocSize(int64(cap(cached.Definitions)) * int64(8))
  1663  		for _, elem := range cached.Definitions {
  1664  			size += elem.CachedSize(true)
  1665  		}
  1666  	}
  1667  	return size
  1668  }
  1669  func (cached *ReferenceDefinition) CachedSize(alloc bool) int64 {
  1670  	if cached == nil {
  1671  		return int64(0)
  1672  	}
  1673  	size := int64(0)
  1674  	if alloc {
  1675  		size += int64(80)
  1676  	}
  1677  	// field ReferencedTable vitess.io/vitess/go/vt/sqlparser.TableName
  1678  	size += cached.ReferencedTable.CachedSize(false)
  1679  	// field ReferencedColumns vitess.io/vitess/go/vt/sqlparser.Columns
  1680  	{
  1681  		size += hack.RuntimeAllocSize(int64(cap(cached.ReferencedColumns)) * int64(40))
  1682  		for _, elem := range cached.ReferencedColumns {
  1683  			size += elem.CachedSize(false)
  1684  		}
  1685  	}
  1686  	return size
  1687  }
  1688  func (cached *Release) CachedSize(alloc bool) int64 {
  1689  	if cached == nil {
  1690  		return int64(0)
  1691  	}
  1692  	size := int64(0)
  1693  	if alloc {
  1694  		size += int64(48)
  1695  	}
  1696  	// field Name vitess.io/vitess/go/vt/sqlparser.ColIdent
  1697  	size += cached.Name.CachedSize(false)
  1698  	return size
  1699  }
  1700  func (cached *RenameIndex) CachedSize(alloc bool) int64 {
  1701  	if cached == nil {
  1702  		return int64(0)
  1703  	}
  1704  	size := int64(0)
  1705  	if alloc {
  1706  		size += int64(80)
  1707  	}
  1708  	// field OldName vitess.io/vitess/go/vt/sqlparser.ColIdent
  1709  	size += cached.OldName.CachedSize(false)
  1710  	// field NewName vitess.io/vitess/go/vt/sqlparser.ColIdent
  1711  	size += cached.NewName.CachedSize(false)
  1712  	return size
  1713  }
  1714  func (cached *RenameTable) CachedSize(alloc bool) int64 {
  1715  	if cached == nil {
  1716  		return int64(0)
  1717  	}
  1718  	size := int64(0)
  1719  	if alloc {
  1720  		size += int64(24)
  1721  	}
  1722  	// field TablePairs []*vitess.io/vitess/go/vt/sqlparser.RenameTablePair
  1723  	{
  1724  		size += hack.RuntimeAllocSize(int64(cap(cached.TablePairs)) * int64(8))
  1725  		for _, elem := range cached.TablePairs {
  1726  			size += elem.CachedSize(true)
  1727  		}
  1728  	}
  1729  	return size
  1730  }
  1731  func (cached *RenameTableName) CachedSize(alloc bool) int64 {
  1732  	if cached == nil {
  1733  		return int64(0)
  1734  	}
  1735  	size := int64(0)
  1736  	if alloc {
  1737  		size += int64(32)
  1738  	}
  1739  	// field Table vitess.io/vitess/go/vt/sqlparser.TableName
  1740  	size += cached.Table.CachedSize(false)
  1741  	return size
  1742  }
  1743  func (cached *RenameTablePair) CachedSize(alloc bool) int64 {
  1744  	if cached == nil {
  1745  		return int64(0)
  1746  	}
  1747  	size := int64(0)
  1748  	if alloc {
  1749  		size += int64(64)
  1750  	}
  1751  	// field FromTable vitess.io/vitess/go/vt/sqlparser.TableName
  1752  	size += cached.FromTable.CachedSize(false)
  1753  	// field ToTable vitess.io/vitess/go/vt/sqlparser.TableName
  1754  	size += cached.ToTable.CachedSize(false)
  1755  	return size
  1756  }
  1757  func (cached *RevertMigration) CachedSize(alloc bool) int64 {
  1758  	if cached == nil {
  1759  		return int64(0)
  1760  	}
  1761  	size := int64(0)
  1762  	if alloc {
  1763  		size += int64(48)
  1764  	}
  1765  	// field UUID string
  1766  	size += hack.RuntimeAllocSize(int64(len(cached.UUID)))
  1767  	// field Comments vitess.io/vitess/go/vt/sqlparser.Comments
  1768  	{
  1769  		size += hack.RuntimeAllocSize(int64(cap(cached.Comments)) * int64(16))
  1770  		for _, elem := range cached.Comments {
  1771  			size += hack.RuntimeAllocSize(int64(len(elem)))
  1772  		}
  1773  	}
  1774  	return size
  1775  }
  1776  func (cached *RootNode) CachedSize(alloc bool) int64 {
  1777  	if cached == nil {
  1778  		return int64(0)
  1779  	}
  1780  	size := int64(0)
  1781  	if alloc {
  1782  		size += int64(16)
  1783  	}
  1784  	// field SQLNode vitess.io/vitess/go/vt/sqlparser.SQLNode
  1785  	if cc, ok := cached.SQLNode.(cachedObject); ok {
  1786  		size += cc.CachedSize(true)
  1787  	}
  1788  	return size
  1789  }
  1790  func (cached *SRollback) CachedSize(alloc bool) int64 {
  1791  	if cached == nil {
  1792  		return int64(0)
  1793  	}
  1794  	size := int64(0)
  1795  	if alloc {
  1796  		size += int64(48)
  1797  	}
  1798  	// field Name vitess.io/vitess/go/vt/sqlparser.ColIdent
  1799  	size += cached.Name.CachedSize(false)
  1800  	return size
  1801  }
  1802  func (cached *Savepoint) CachedSize(alloc bool) int64 {
  1803  	if cached == nil {
  1804  		return int64(0)
  1805  	}
  1806  	size := int64(0)
  1807  	if alloc {
  1808  		size += int64(48)
  1809  	}
  1810  	// field Name vitess.io/vitess/go/vt/sqlparser.ColIdent
  1811  	size += cached.Name.CachedSize(false)
  1812  	return size
  1813  }
  1814  func (cached *Select) CachedSize(alloc bool) int64 {
  1815  	if cached == nil {
  1816  		return int64(0)
  1817  	}
  1818  	size := int64(0)
  1819  	if alloc {
  1820  		size += int64(192)
  1821  	}
  1822  	// field Cache *bool
  1823  	size += hack.RuntimeAllocSize(int64(1))
  1824  	// field From []vitess.io/vitess/go/vt/sqlparser.TableExpr
  1825  	{
  1826  		size += hack.RuntimeAllocSize(int64(cap(cached.From)) * int64(16))
  1827  		for _, elem := range cached.From {
  1828  			if cc, ok := elem.(cachedObject); ok {
  1829  				size += cc.CachedSize(true)
  1830  			}
  1831  		}
  1832  	}
  1833  	// field Comments vitess.io/vitess/go/vt/sqlparser.Comments
  1834  	{
  1835  		size += hack.RuntimeAllocSize(int64(cap(cached.Comments)) * int64(16))
  1836  		for _, elem := range cached.Comments {
  1837  			size += hack.RuntimeAllocSize(int64(len(elem)))
  1838  		}
  1839  	}
  1840  	// field SelectExprs vitess.io/vitess/go/vt/sqlparser.SelectExprs
  1841  	{
  1842  		size += hack.RuntimeAllocSize(int64(cap(cached.SelectExprs)) * int64(16))
  1843  		for _, elem := range cached.SelectExprs {
  1844  			if cc, ok := elem.(cachedObject); ok {
  1845  				size += cc.CachedSize(true)
  1846  			}
  1847  		}
  1848  	}
  1849  	// field Where *vitess.io/vitess/go/vt/sqlparser.Where
  1850  	size += cached.Where.CachedSize(true)
  1851  	// field With *vitess.io/vitess/go/vt/sqlparser.With
  1852  	size += cached.With.CachedSize(true)
  1853  	// field GroupBy vitess.io/vitess/go/vt/sqlparser.GroupBy
  1854  	{
  1855  		size += hack.RuntimeAllocSize(int64(cap(cached.GroupBy)) * int64(16))
  1856  		for _, elem := range cached.GroupBy {
  1857  			if cc, ok := elem.(cachedObject); ok {
  1858  				size += cc.CachedSize(true)
  1859  			}
  1860  		}
  1861  	}
  1862  	// field Having *vitess.io/vitess/go/vt/sqlparser.Where
  1863  	size += cached.Having.CachedSize(true)
  1864  	// field OrderBy vitess.io/vitess/go/vt/sqlparser.OrderBy
  1865  	{
  1866  		size += hack.RuntimeAllocSize(int64(cap(cached.OrderBy)) * int64(8))
  1867  		for _, elem := range cached.OrderBy {
  1868  			size += elem.CachedSize(true)
  1869  		}
  1870  	}
  1871  	// field Limit *vitess.io/vitess/go/vt/sqlparser.Limit
  1872  	size += cached.Limit.CachedSize(true)
  1873  	// field Into *vitess.io/vitess/go/vt/sqlparser.SelectInto
  1874  	size += cached.Into.CachedSize(true)
  1875  	return size
  1876  }
  1877  func (cached *SelectInto) CachedSize(alloc bool) int64 {
  1878  	if cached == nil {
  1879  		return int64(0)
  1880  	}
  1881  	size := int64(0)
  1882  	if alloc {
  1883  		size += int64(112)
  1884  	}
  1885  	// field FileName string
  1886  	size += hack.RuntimeAllocSize(int64(len(cached.FileName)))
  1887  	// field Charset string
  1888  	size += hack.RuntimeAllocSize(int64(len(cached.Charset)))
  1889  	// field FormatOption string
  1890  	size += hack.RuntimeAllocSize(int64(len(cached.FormatOption)))
  1891  	// field ExportOption string
  1892  	size += hack.RuntimeAllocSize(int64(len(cached.ExportOption)))
  1893  	// field Manifest string
  1894  	size += hack.RuntimeAllocSize(int64(len(cached.Manifest)))
  1895  	// field Overwrite string
  1896  	size += hack.RuntimeAllocSize(int64(len(cached.Overwrite)))
  1897  	return size
  1898  }
  1899  func (cached *Set) CachedSize(alloc bool) int64 {
  1900  	if cached == nil {
  1901  		return int64(0)
  1902  	}
  1903  	size := int64(0)
  1904  	if alloc {
  1905  		size += int64(48)
  1906  	}
  1907  	// field Comments vitess.io/vitess/go/vt/sqlparser.Comments
  1908  	{
  1909  		size += hack.RuntimeAllocSize(int64(cap(cached.Comments)) * int64(16))
  1910  		for _, elem := range cached.Comments {
  1911  			size += hack.RuntimeAllocSize(int64(len(elem)))
  1912  		}
  1913  	}
  1914  	// field Exprs vitess.io/vitess/go/vt/sqlparser.SetExprs
  1915  	{
  1916  		size += hack.RuntimeAllocSize(int64(cap(cached.Exprs)) * int64(8))
  1917  		for _, elem := range cached.Exprs {
  1918  			size += elem.CachedSize(true)
  1919  		}
  1920  	}
  1921  	return size
  1922  }
  1923  func (cached *SetExpr) CachedSize(alloc bool) int64 {
  1924  	if cached == nil {
  1925  		return int64(0)
  1926  	}
  1927  	size := int64(0)
  1928  	if alloc {
  1929  		size += int64(64)
  1930  	}
  1931  	// field Name vitess.io/vitess/go/vt/sqlparser.ColIdent
  1932  	size += cached.Name.CachedSize(false)
  1933  	// field Expr vitess.io/vitess/go/vt/sqlparser.Expr
  1934  	if cc, ok := cached.Expr.(cachedObject); ok {
  1935  		size += cc.CachedSize(true)
  1936  	}
  1937  	return size
  1938  }
  1939  func (cached *SetTransaction) CachedSize(alloc bool) int64 {
  1940  	if cached == nil {
  1941  		return int64(0)
  1942  	}
  1943  	size := int64(0)
  1944  	if alloc {
  1945  		size += int64(80)
  1946  	}
  1947  	// field SQLNode vitess.io/vitess/go/vt/sqlparser.SQLNode
  1948  	if cc, ok := cached.SQLNode.(cachedObject); ok {
  1949  		size += cc.CachedSize(true)
  1950  	}
  1951  	// field Comments vitess.io/vitess/go/vt/sqlparser.Comments
  1952  	{
  1953  		size += hack.RuntimeAllocSize(int64(cap(cached.Comments)) * int64(16))
  1954  		for _, elem := range cached.Comments {
  1955  			size += hack.RuntimeAllocSize(int64(len(elem)))
  1956  		}
  1957  	}
  1958  	// field Characteristics []vitess.io/vitess/go/vt/sqlparser.Characteristic
  1959  	{
  1960  		size += hack.RuntimeAllocSize(int64(cap(cached.Characteristics)) * int64(16))
  1961  		for _, elem := range cached.Characteristics {
  1962  			if cc, ok := elem.(cachedObject); ok {
  1963  				size += cc.CachedSize(true)
  1964  			}
  1965  		}
  1966  	}
  1967  	return size
  1968  }
  1969  func (cached *Show) CachedSize(alloc bool) int64 {
  1970  	if cached == nil {
  1971  		return int64(0)
  1972  	}
  1973  	size := int64(0)
  1974  	if alloc {
  1975  		size += int64(16)
  1976  	}
  1977  	// field Internal vitess.io/vitess/go/vt/sqlparser.ShowInternal
  1978  	if cc, ok := cached.Internal.(cachedObject); ok {
  1979  		size += cc.CachedSize(true)
  1980  	}
  1981  	return size
  1982  }
  1983  func (cached *ShowBasic) CachedSize(alloc bool) int64 {
  1984  	if cached == nil {
  1985  		return int64(0)
  1986  	}
  1987  	size := int64(0)
  1988  	if alloc {
  1989  		size += int64(64)
  1990  	}
  1991  	// field Tbl vitess.io/vitess/go/vt/sqlparser.TableName
  1992  	size += cached.Tbl.CachedSize(false)
  1993  	// field DbName vitess.io/vitess/go/vt/sqlparser.TableIdent
  1994  	size += cached.DbName.CachedSize(false)
  1995  	// field Filter *vitess.io/vitess/go/vt/sqlparser.ShowFilter
  1996  	size += cached.Filter.CachedSize(true)
  1997  	return size
  1998  }
  1999  func (cached *ShowCreate) CachedSize(alloc bool) int64 {
  2000  	if cached == nil {
  2001  		return int64(0)
  2002  	}
  2003  	size := int64(0)
  2004  	if alloc {
  2005  		size += int64(48)
  2006  	}
  2007  	// field Op vitess.io/vitess/go/vt/sqlparser.TableName
  2008  	size += cached.Op.CachedSize(false)
  2009  	return size
  2010  }
  2011  func (cached *ShowFilter) CachedSize(alloc bool) int64 {
  2012  	if cached == nil {
  2013  		return int64(0)
  2014  	}
  2015  	size := int64(0)
  2016  	if alloc {
  2017  		size += int64(32)
  2018  	}
  2019  	// field Like string
  2020  	size += hack.RuntimeAllocSize(int64(len(cached.Like)))
  2021  	// field Filter vitess.io/vitess/go/vt/sqlparser.Expr
  2022  	if cc, ok := cached.Filter.(cachedObject); ok {
  2023  		size += cc.CachedSize(true)
  2024  	}
  2025  	return size
  2026  }
  2027  func (cached *ShowLegacy) CachedSize(alloc bool) int64 {
  2028  	if cached == nil {
  2029  		return int64(0)
  2030  	}
  2031  	size := int64(0)
  2032  	if alloc {
  2033  		size += int64(128)
  2034  	}
  2035  	// field Extended string
  2036  	size += hack.RuntimeAllocSize(int64(len(cached.Extended)))
  2037  	// field Type string
  2038  	size += hack.RuntimeAllocSize(int64(len(cached.Type)))
  2039  	// field OnTable vitess.io/vitess/go/vt/sqlparser.TableName
  2040  	size += cached.OnTable.CachedSize(false)
  2041  	// field Table vitess.io/vitess/go/vt/sqlparser.TableName
  2042  	size += cached.Table.CachedSize(false)
  2043  	// field ShowTablesOpt *vitess.io/vitess/go/vt/sqlparser.ShowTablesOpt
  2044  	size += cached.ShowTablesOpt.CachedSize(true)
  2045  	// field ShowCollationFilterOpt vitess.io/vitess/go/vt/sqlparser.Expr
  2046  	if cc, ok := cached.ShowCollationFilterOpt.(cachedObject); ok {
  2047  		size += cc.CachedSize(true)
  2048  	}
  2049  	return size
  2050  }
  2051  func (cached *ShowMigrationLogs) CachedSize(alloc bool) int64 {
  2052  	if cached == nil {
  2053  		return int64(0)
  2054  	}
  2055  	size := int64(0)
  2056  	if alloc {
  2057  		size += int64(48)
  2058  	}
  2059  	// field UUID string
  2060  	size += hack.RuntimeAllocSize(int64(len(cached.UUID)))
  2061  	// field Comments vitess.io/vitess/go/vt/sqlparser.Comments
  2062  	{
  2063  		size += hack.RuntimeAllocSize(int64(cap(cached.Comments)) * int64(16))
  2064  		for _, elem := range cached.Comments {
  2065  			size += hack.RuntimeAllocSize(int64(len(elem)))
  2066  		}
  2067  	}
  2068  	return size
  2069  }
  2070  func (cached *ShowTablesOpt) CachedSize(alloc bool) int64 {
  2071  	if cached == nil {
  2072  		return int64(0)
  2073  	}
  2074  	size := int64(0)
  2075  	if alloc {
  2076  		size += int64(48)
  2077  	}
  2078  	// field Full string
  2079  	size += hack.RuntimeAllocSize(int64(len(cached.Full)))
  2080  	// field DbName string
  2081  	size += hack.RuntimeAllocSize(int64(len(cached.DbName)))
  2082  	// field Filter *vitess.io/vitess/go/vt/sqlparser.ShowFilter
  2083  	size += cached.Filter.CachedSize(true)
  2084  	return size
  2085  }
  2086  func (cached *StarExpr) CachedSize(alloc bool) int64 {
  2087  	if cached == nil {
  2088  		return int64(0)
  2089  	}
  2090  	size := int64(0)
  2091  	if alloc {
  2092  		size += int64(32)
  2093  	}
  2094  	// field TableName vitess.io/vitess/go/vt/sqlparser.TableName
  2095  	size += cached.TableName.CachedSize(false)
  2096  	return size
  2097  }
  2098  func (cached *Stream) CachedSize(alloc bool) int64 {
  2099  	if cached == nil {
  2100  		return int64(0)
  2101  	}
  2102  	size := int64(0)
  2103  	if alloc {
  2104  		size += int64(80)
  2105  	}
  2106  	// field Comments vitess.io/vitess/go/vt/sqlparser.Comments
  2107  	{
  2108  		size += hack.RuntimeAllocSize(int64(cap(cached.Comments)) * int64(16))
  2109  		for _, elem := range cached.Comments {
  2110  			size += hack.RuntimeAllocSize(int64(len(elem)))
  2111  		}
  2112  	}
  2113  	// field SelectExpr vitess.io/vitess/go/vt/sqlparser.SelectExpr
  2114  	if cc, ok := cached.SelectExpr.(cachedObject); ok {
  2115  		size += cc.CachedSize(true)
  2116  	}
  2117  	// field Table vitess.io/vitess/go/vt/sqlparser.TableName
  2118  	size += cached.Table.CachedSize(false)
  2119  	return size
  2120  }
  2121  func (cached *SubPartition) CachedSize(alloc bool) int64 {
  2122  	if cached == nil {
  2123  		return int64(0)
  2124  	}
  2125  	size := int64(0)
  2126  	if alloc {
  2127  		size += int64(96)
  2128  	}
  2129  	// field Linear string
  2130  	size += hack.RuntimeAllocSize(int64(len(cached.Linear)))
  2131  	// field KeyAlgorithm string
  2132  	size += hack.RuntimeAllocSize(int64(len(cached.KeyAlgorithm)))
  2133  	// field KeyColList vitess.io/vitess/go/vt/sqlparser.Columns
  2134  	{
  2135  		size += hack.RuntimeAllocSize(int64(cap(cached.KeyColList)) * int64(40))
  2136  		for _, elem := range cached.KeyColList {
  2137  			size += elem.CachedSize(false)
  2138  		}
  2139  	}
  2140  	// field Expr vitess.io/vitess/go/vt/sqlparser.Expr
  2141  	if cc, ok := cached.Expr.(cachedObject); ok {
  2142  		size += cc.CachedSize(true)
  2143  	}
  2144  	// field SubPartitions string
  2145  	size += hack.RuntimeAllocSize(int64(len(cached.SubPartitions)))
  2146  	return size
  2147  }
  2148  func (cached *Subquery) CachedSize(alloc bool) int64 {
  2149  	if cached == nil {
  2150  		return int64(0)
  2151  	}
  2152  	size := int64(0)
  2153  	if alloc {
  2154  		size += int64(16)
  2155  	}
  2156  	// field Select vitess.io/vitess/go/vt/sqlparser.SelectStatement
  2157  	if cc, ok := cached.Select.(cachedObject); ok {
  2158  		size += cc.CachedSize(true)
  2159  	}
  2160  	return size
  2161  }
  2162  func (cached *SubstrExpr) CachedSize(alloc bool) int64 {
  2163  	if cached == nil {
  2164  		return int64(0)
  2165  	}
  2166  	size := int64(0)
  2167  	if alloc {
  2168  		size += int64(48)
  2169  	}
  2170  	// field Name vitess.io/vitess/go/vt/sqlparser.Expr
  2171  	if cc, ok := cached.Name.(cachedObject); ok {
  2172  		size += cc.CachedSize(true)
  2173  	}
  2174  	// field From vitess.io/vitess/go/vt/sqlparser.Expr
  2175  	if cc, ok := cached.From.(cachedObject); ok {
  2176  		size += cc.CachedSize(true)
  2177  	}
  2178  	// field To vitess.io/vitess/go/vt/sqlparser.Expr
  2179  	if cc, ok := cached.To.(cachedObject); ok {
  2180  		size += cc.CachedSize(true)
  2181  	}
  2182  	return size
  2183  }
  2184  func (cached *TableAndLockType) CachedSize(alloc bool) int64 {
  2185  	if cached == nil {
  2186  		return int64(0)
  2187  	}
  2188  	size := int64(0)
  2189  	if alloc {
  2190  		size += int64(24)
  2191  	}
  2192  	// field Table vitess.io/vitess/go/vt/sqlparser.TableExpr
  2193  	if cc, ok := cached.Table.(cachedObject); ok {
  2194  		size += cc.CachedSize(true)
  2195  	}
  2196  	return size
  2197  }
  2198  func (cached *TableIdent) CachedSize(alloc bool) int64 {
  2199  	if cached == nil {
  2200  		return int64(0)
  2201  	}
  2202  	size := int64(0)
  2203  	if alloc {
  2204  		size += int64(16)
  2205  	}
  2206  	// field v string
  2207  	size += hack.RuntimeAllocSize(int64(len(cached.v)))
  2208  	return size
  2209  }
  2210  func (cached *TableName) CachedSize(alloc bool) int64 {
  2211  	if cached == nil {
  2212  		return int64(0)
  2213  	}
  2214  	size := int64(0)
  2215  	if alloc {
  2216  		size += int64(32)
  2217  	}
  2218  	// field Name vitess.io/vitess/go/vt/sqlparser.TableIdent
  2219  	size += cached.Name.CachedSize(false)
  2220  	// field Qualifier vitess.io/vitess/go/vt/sqlparser.TableIdent
  2221  	size += cached.Qualifier.CachedSize(false)
  2222  	return size
  2223  }
  2224  func (cached *TableOption) CachedSize(alloc bool) int64 {
  2225  	if cached == nil {
  2226  		return int64(0)
  2227  	}
  2228  	size := int64(0)
  2229  	if alloc {
  2230  		size += int64(64)
  2231  	}
  2232  	// field Name string
  2233  	size += hack.RuntimeAllocSize(int64(len(cached.Name)))
  2234  	// field Value *vitess.io/vitess/go/vt/sqlparser.Literal
  2235  	size += cached.Value.CachedSize(true)
  2236  	// field String string
  2237  	size += hack.RuntimeAllocSize(int64(len(cached.String)))
  2238  	// field Tables vitess.io/vitess/go/vt/sqlparser.TableNames
  2239  	{
  2240  		size += hack.RuntimeAllocSize(int64(cap(cached.Tables)) * int64(32))
  2241  		for _, elem := range cached.Tables {
  2242  			size += elem.CachedSize(false)
  2243  		}
  2244  	}
  2245  	return size
  2246  }
  2247  func (cached *TableSpec) CachedSize(alloc bool) int64 {
  2248  	if cached == nil {
  2249  		return int64(0)
  2250  	}
  2251  	size := int64(0)
  2252  	if alloc {
  2253  		size += int64(112)
  2254  	}
  2255  	// field Columns []*vitess.io/vitess/go/vt/sqlparser.ColumnDefinition
  2256  	{
  2257  		size += hack.RuntimeAllocSize(int64(cap(cached.Columns)) * int64(8))
  2258  		for _, elem := range cached.Columns {
  2259  			size += elem.CachedSize(true)
  2260  		}
  2261  	}
  2262  	// field Indexes []*vitess.io/vitess/go/vt/sqlparser.IndexDefinition
  2263  	{
  2264  		size += hack.RuntimeAllocSize(int64(cap(cached.Indexes)) * int64(8))
  2265  		for _, elem := range cached.Indexes {
  2266  			size += elem.CachedSize(true)
  2267  		}
  2268  	}
  2269  	// field Constraints []*vitess.io/vitess/go/vt/sqlparser.ConstraintDefinition
  2270  	{
  2271  		size += hack.RuntimeAllocSize(int64(cap(cached.Constraints)) * int64(8))
  2272  		for _, elem := range cached.Constraints {
  2273  			size += elem.CachedSize(true)
  2274  		}
  2275  	}
  2276  	// field Options vitess.io/vitess/go/vt/sqlparser.TableOptions
  2277  	{
  2278  		size += hack.RuntimeAllocSize(int64(cap(cached.Options)) * int64(8))
  2279  		for _, elem := range cached.Options {
  2280  			size += elem.CachedSize(true)
  2281  		}
  2282  	}
  2283  	// field PartitionOption *vitess.io/vitess/go/vt/sqlparser.PartitionOption
  2284  	size += cached.PartitionOption.CachedSize(true)
  2285  	return size
  2286  }
  2287  func (cached *TablespaceOperation) CachedSize(alloc bool) int64 {
  2288  	if cached == nil {
  2289  		return int64(0)
  2290  	}
  2291  	size := int64(0)
  2292  	if alloc {
  2293  		size += int64(8)
  2294  	}
  2295  	return size
  2296  }
  2297  func (cached *TimestampFuncExpr) CachedSize(alloc bool) int64 {
  2298  	if cached == nil {
  2299  		return int64(0)
  2300  	}
  2301  	size := int64(0)
  2302  	if alloc {
  2303  		size += int64(64)
  2304  	}
  2305  	// field Name string
  2306  	size += hack.RuntimeAllocSize(int64(len(cached.Name)))
  2307  	// field Expr1 vitess.io/vitess/go/vt/sqlparser.Expr
  2308  	if cc, ok := cached.Expr1.(cachedObject); ok {
  2309  		size += cc.CachedSize(true)
  2310  	}
  2311  	// field Expr2 vitess.io/vitess/go/vt/sqlparser.Expr
  2312  	if cc, ok := cached.Expr2.(cachedObject); ok {
  2313  		size += cc.CachedSize(true)
  2314  	}
  2315  	// field Unit string
  2316  	size += hack.RuntimeAllocSize(int64(len(cached.Unit)))
  2317  	return size
  2318  }
  2319  func (cached *TruncateTable) CachedSize(alloc bool) int64 {
  2320  	if cached == nil {
  2321  		return int64(0)
  2322  	}
  2323  	size := int64(0)
  2324  	if alloc {
  2325  		size += int64(32)
  2326  	}
  2327  	// field Table vitess.io/vitess/go/vt/sqlparser.TableName
  2328  	size += cached.Table.CachedSize(false)
  2329  	return size
  2330  }
  2331  func (cached *UnaryExpr) CachedSize(alloc bool) int64 {
  2332  	if cached == nil {
  2333  		return int64(0)
  2334  	}
  2335  	size := int64(0)
  2336  	if alloc {
  2337  		size += int64(24)
  2338  	}
  2339  	// field Expr vitess.io/vitess/go/vt/sqlparser.Expr
  2340  	if cc, ok := cached.Expr.(cachedObject); ok {
  2341  		size += cc.CachedSize(true)
  2342  	}
  2343  	return size
  2344  }
  2345  func (cached *Union) CachedSize(alloc bool) int64 {
  2346  	if cached == nil {
  2347  		return int64(0)
  2348  	}
  2349  	size := int64(0)
  2350  	if alloc {
  2351  		size += int64(96)
  2352  	}
  2353  	// field Left vitess.io/vitess/go/vt/sqlparser.SelectStatement
  2354  	if cc, ok := cached.Left.(cachedObject); ok {
  2355  		size += cc.CachedSize(true)
  2356  	}
  2357  	// field Right vitess.io/vitess/go/vt/sqlparser.SelectStatement
  2358  	if cc, ok := cached.Right.(cachedObject); ok {
  2359  		size += cc.CachedSize(true)
  2360  	}
  2361  	// field OrderBy vitess.io/vitess/go/vt/sqlparser.OrderBy
  2362  	{
  2363  		size += hack.RuntimeAllocSize(int64(cap(cached.OrderBy)) * int64(8))
  2364  		for _, elem := range cached.OrderBy {
  2365  			size += elem.CachedSize(true)
  2366  		}
  2367  	}
  2368  	// field With *vitess.io/vitess/go/vt/sqlparser.With
  2369  	size += cached.With.CachedSize(true)
  2370  	// field Limit *vitess.io/vitess/go/vt/sqlparser.Limit
  2371  	size += cached.Limit.CachedSize(true)
  2372  	// field Into *vitess.io/vitess/go/vt/sqlparser.SelectInto
  2373  	size += cached.Into.CachedSize(true)
  2374  	return size
  2375  }
  2376  func (cached *Update) CachedSize(alloc bool) int64 {
  2377  	if cached == nil {
  2378  		return int64(0)
  2379  	}
  2380  	size := int64(0)
  2381  	if alloc {
  2382  		size += int64(128)
  2383  	}
  2384  	// field With *vitess.io/vitess/go/vt/sqlparser.With
  2385  	size += cached.With.CachedSize(true)
  2386  	// field Comments vitess.io/vitess/go/vt/sqlparser.Comments
  2387  	{
  2388  		size += hack.RuntimeAllocSize(int64(cap(cached.Comments)) * int64(16))
  2389  		for _, elem := range cached.Comments {
  2390  			size += hack.RuntimeAllocSize(int64(len(elem)))
  2391  		}
  2392  	}
  2393  	// field TableExprs vitess.io/vitess/go/vt/sqlparser.TableExprs
  2394  	{
  2395  		size += hack.RuntimeAllocSize(int64(cap(cached.TableExprs)) * int64(16))
  2396  		for _, elem := range cached.TableExprs {
  2397  			if cc, ok := elem.(cachedObject); ok {
  2398  				size += cc.CachedSize(true)
  2399  			}
  2400  		}
  2401  	}
  2402  	// field Exprs vitess.io/vitess/go/vt/sqlparser.UpdateExprs
  2403  	{
  2404  		size += hack.RuntimeAllocSize(int64(cap(cached.Exprs)) * int64(8))
  2405  		for _, elem := range cached.Exprs {
  2406  			size += elem.CachedSize(true)
  2407  		}
  2408  	}
  2409  	// field Where *vitess.io/vitess/go/vt/sqlparser.Where
  2410  	size += cached.Where.CachedSize(true)
  2411  	// field OrderBy vitess.io/vitess/go/vt/sqlparser.OrderBy
  2412  	{
  2413  		size += hack.RuntimeAllocSize(int64(cap(cached.OrderBy)) * int64(8))
  2414  		for _, elem := range cached.OrderBy {
  2415  			size += elem.CachedSize(true)
  2416  		}
  2417  	}
  2418  	// field Limit *vitess.io/vitess/go/vt/sqlparser.Limit
  2419  	size += cached.Limit.CachedSize(true)
  2420  	return size
  2421  }
  2422  func (cached *UpdateExpr) CachedSize(alloc bool) int64 {
  2423  	if cached == nil {
  2424  		return int64(0)
  2425  	}
  2426  	size := int64(0)
  2427  	if alloc {
  2428  		size += int64(24)
  2429  	}
  2430  	// field Name *vitess.io/vitess/go/vt/sqlparser.ColName
  2431  	size += cached.Name.CachedSize(true)
  2432  	// field Expr vitess.io/vitess/go/vt/sqlparser.Expr
  2433  	if cc, ok := cached.Expr.(cachedObject); ok {
  2434  		size += cc.CachedSize(true)
  2435  	}
  2436  	return size
  2437  }
  2438  func (cached *Use) CachedSize(alloc bool) int64 {
  2439  	if cached == nil {
  2440  		return int64(0)
  2441  	}
  2442  	size := int64(0)
  2443  	if alloc {
  2444  		size += int64(16)
  2445  	}
  2446  	// field DBName vitess.io/vitess/go/vt/sqlparser.TableIdent
  2447  	size += cached.DBName.CachedSize(false)
  2448  	return size
  2449  }
  2450  func (cached *VStream) CachedSize(alloc bool) int64 {
  2451  	if cached == nil {
  2452  		return int64(0)
  2453  	}
  2454  	size := int64(0)
  2455  	if alloc {
  2456  		size += int64(96)
  2457  	}
  2458  	// field Comments vitess.io/vitess/go/vt/sqlparser.Comments
  2459  	{
  2460  		size += hack.RuntimeAllocSize(int64(cap(cached.Comments)) * int64(16))
  2461  		for _, elem := range cached.Comments {
  2462  			size += hack.RuntimeAllocSize(int64(len(elem)))
  2463  		}
  2464  	}
  2465  	// field SelectExpr vitess.io/vitess/go/vt/sqlparser.SelectExpr
  2466  	if cc, ok := cached.SelectExpr.(cachedObject); ok {
  2467  		size += cc.CachedSize(true)
  2468  	}
  2469  	// field Table vitess.io/vitess/go/vt/sqlparser.TableName
  2470  	size += cached.Table.CachedSize(false)
  2471  	// field Where *vitess.io/vitess/go/vt/sqlparser.Where
  2472  	size += cached.Where.CachedSize(true)
  2473  	// field Limit *vitess.io/vitess/go/vt/sqlparser.Limit
  2474  	size += cached.Limit.CachedSize(true)
  2475  	return size
  2476  }
  2477  func (cached *Validation) CachedSize(alloc bool) int64 {
  2478  	if cached == nil {
  2479  		return int64(0)
  2480  	}
  2481  	size := int64(0)
  2482  	if alloc {
  2483  		size += int64(8)
  2484  	}
  2485  	return size
  2486  }
  2487  func (cached *ValuesFuncExpr) CachedSize(alloc bool) int64 {
  2488  	if cached == nil {
  2489  		return int64(0)
  2490  	}
  2491  	size := int64(0)
  2492  	if alloc {
  2493  		size += int64(8)
  2494  	}
  2495  	// field Name *vitess.io/vitess/go/vt/sqlparser.ColName
  2496  	size += cached.Name.CachedSize(true)
  2497  	return size
  2498  }
  2499  func (cached *VindexParam) CachedSize(alloc bool) int64 {
  2500  	if cached == nil {
  2501  		return int64(0)
  2502  	}
  2503  	size := int64(0)
  2504  	if alloc {
  2505  		size += int64(64)
  2506  	}
  2507  	// field Key vitess.io/vitess/go/vt/sqlparser.ColIdent
  2508  	size += cached.Key.CachedSize(false)
  2509  	// field Val string
  2510  	size += hack.RuntimeAllocSize(int64(len(cached.Val)))
  2511  	return size
  2512  }
  2513  func (cached *VindexSpec) CachedSize(alloc bool) int64 {
  2514  	if cached == nil {
  2515  		return int64(0)
  2516  	}
  2517  	size := int64(0)
  2518  	if alloc {
  2519  		size += int64(112)
  2520  	}
  2521  	// field Name vitess.io/vitess/go/vt/sqlparser.ColIdent
  2522  	size += cached.Name.CachedSize(false)
  2523  	// field Type vitess.io/vitess/go/vt/sqlparser.ColIdent
  2524  	size += cached.Type.CachedSize(false)
  2525  	// field Params []vitess.io/vitess/go/vt/sqlparser.VindexParam
  2526  	{
  2527  		size += hack.RuntimeAllocSize(int64(cap(cached.Params)) * int64(56))
  2528  		for _, elem := range cached.Params {
  2529  			size += elem.CachedSize(false)
  2530  		}
  2531  	}
  2532  	return size
  2533  }
  2534  func (cached *When) CachedSize(alloc bool) int64 {
  2535  	if cached == nil {
  2536  		return int64(0)
  2537  	}
  2538  	size := int64(0)
  2539  	if alloc {
  2540  		size += int64(32)
  2541  	}
  2542  	// field Cond vitess.io/vitess/go/vt/sqlparser.Expr
  2543  	if cc, ok := cached.Cond.(cachedObject); ok {
  2544  		size += cc.CachedSize(true)
  2545  	}
  2546  	// field Val vitess.io/vitess/go/vt/sqlparser.Expr
  2547  	if cc, ok := cached.Val.(cachedObject); ok {
  2548  		size += cc.CachedSize(true)
  2549  	}
  2550  	return size
  2551  }
  2552  func (cached *Where) CachedSize(alloc bool) int64 {
  2553  	if cached == nil {
  2554  		return int64(0)
  2555  	}
  2556  	size := int64(0)
  2557  	if alloc {
  2558  		size += int64(24)
  2559  	}
  2560  	// field Expr vitess.io/vitess/go/vt/sqlparser.Expr
  2561  	if cc, ok := cached.Expr.(cachedObject); ok {
  2562  		size += cc.CachedSize(true)
  2563  	}
  2564  	return size
  2565  }
  2566  func (cached *With) CachedSize(alloc bool) int64 {
  2567  	if cached == nil {
  2568  		return int64(0)
  2569  	}
  2570  	size := int64(0)
  2571  	if alloc {
  2572  		size += int64(32)
  2573  	}
  2574  	// field ctes []*vitess.io/vitess/go/vt/sqlparser.CommonTableExpr
  2575  	{
  2576  		size += hack.RuntimeAllocSize(int64(cap(cached.ctes)) * int64(8))
  2577  		for _, elem := range cached.ctes {
  2578  			size += elem.CachedSize(true)
  2579  		}
  2580  	}
  2581  	return size
  2582  }
  2583  func (cached *XorExpr) CachedSize(alloc bool) int64 {
  2584  	if cached == nil {
  2585  		return int64(0)
  2586  	}
  2587  	size := int64(0)
  2588  	if alloc {
  2589  		size += int64(32)
  2590  	}
  2591  	// field Left vitess.io/vitess/go/vt/sqlparser.Expr
  2592  	if cc, ok := cached.Left.(cachedObject); ok {
  2593  		size += cc.CachedSize(true)
  2594  	}
  2595  	// field Right vitess.io/vitess/go/vt/sqlparser.Expr
  2596  	if cc, ok := cached.Right.(cachedObject); ok {
  2597  		size += cc.CachedSize(true)
  2598  	}
  2599  	return size
  2600  }