Changeset 34a1d2e for src/SynTree
- Timestamp:
- Jan 14, 2023, 10:04:51 AM (3 years ago)
- Branches:
- ADT, ast-experimental, master, stuck-waitfor-destruct
- Children:
- 9845cb6
- Parents:
- b3d794fc (diff), d61d034 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - Location:
- src/SynTree
- Files:
-
- 2 edited
-
BasicType.cc (modified) (1 diff)
-
Type.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/BasicType.cc
rb3d794fc r34a1d2e 29 29 } 30 30 31 bool BasicType::isWholeNumber() const {32 return kind == Bool ||33 kind ==Char ||34 kind == SignedChar ||35 kind == UnsignedChar ||36 kind == ShortSignedInt ||37 kind == ShortUnsignedInt ||38 kind == SignedInt ||39 kind == UnsignedInt ||40 kind == LongSignedInt ||41 kind == LongUnsignedInt ||42 kind == LongLongSignedInt ||43 kind ==LongLongUnsignedInt ||44 kind == SignedInt128 ||45 kind == UnsignedInt128;46 }47 48 31 bool BasicType::isInteger() const { 49 32 return kind <= UnsignedInt128; -
src/SynTree/Type.h
rb3d794fc r34a1d2e 271 271 virtual Type *acceptMutator( Mutator & m ) override { return m.mutate( this ); } 272 272 virtual void print( std::ostream & os, Indenter indent = {} ) const override; 273 bool isWholeNumber() const;274 273 bool isInteger() const; 275 274 };
Note:
See TracChangeset
for help on using the changeset viewer.