C# Class ABT.MemberIterator.Status

Show file Open project: phisiart/C-Compiler

Public Properties

Property Type Description
base_type ExprType
indices List

Public Methods

Method Description
GetOffset ( ExprType base_type, IReadOnlyList indices ) : Int32
GetOffset ( ExprType from_type, Int32 to_index ) : Int32
GetType ( ExprType base_type, IReadOnlyList indices ) : ExprType
GetType ( ExprType from_type, Int32 to_index ) : ExprType
GetTypes ( ExprType base_type, IReadOnlyList indices ) : List
Locate ( ExprType type ) : void

Read an expression in the initializer list, locate the corresponding position.

Next ( ) : void
Status ( ExprType base_type ) : System

Private Methods

Method Description
LocateScalar ( ) : void

Try to match a scalar. This step doesn't check what scalar it is. Further steps would perform implicit conversions.

LocateStruct ( StructOrUnionType type ) : void

Try to match a given struct. Go down to find the first element of the same struct Type.

Method Details

GetOffset() public static method

public static GetOffset ( ExprType base_type, IReadOnlyList indices ) : Int32
base_type ExprType
indices IReadOnlyList
return System.Int32

GetOffset() public static method

public static GetOffset ( ExprType from_type, Int32 to_index ) : Int32
from_type ExprType
to_index System.Int32
return System.Int32

GetType() public static method

public static GetType ( ExprType base_type, IReadOnlyList indices ) : ExprType
base_type ExprType
indices IReadOnlyList
return ExprType

GetType() public static method

public static GetType ( ExprType from_type, Int32 to_index ) : ExprType
from_type ExprType
to_index System.Int32
return ExprType

GetTypes() public method

public GetTypes ( ExprType base_type, IReadOnlyList indices ) : List
base_type ExprType
indices IReadOnlyList
return List

Locate() public method

Read an expression in the initializer list, locate the corresponding position.
public Locate ( ExprType type ) : void
type ExprType
return void

Next() public method

public Next ( ) : void
return void

Status() public method

public Status ( ExprType base_type ) : System
base_type ExprType
return System

Property Details

base_type public property

public ExprType,ABT base_type
return ExprType

indices public property

public List indices
return List