| 44 | } |
| 45 | |
| 46 | bool Type::FromTokenType( int type ) |
| 47 | { |
| 48 | // TODO: check if token.type is a type name |
| 49 | symbol = nullptr; |
| 50 | builtInType = type; |
| 51 | width = 1; |
| 52 | height = 1; |
| 53 | templateParameter = nullptr; |
| 54 | modifier = 0; |
| 55 | storageClass = 0; |
| 56 | arrayDimensions = 0; |
| 57 | metalTextureAccess = 0; |
| 58 | templateSamples = -1; |
| 59 | isDepthTexture = false; |
| 60 | return true; |
| 61 | } |
| 62 | |
| 63 | bool Type::FromSymbol( const Symbol* asymbol ) |
| 64 | { |
no outgoing calls
no test coverage detected