diff options
| author | Tim Foley <tfoley@nvidia.com> | 2017-08-09 10:13:40 -0700 |
|---|---|---|
| committer | Tim Foley <tfoley@nvidia.com> | 2017-08-09 10:23:09 -0700 |
| commit | 695c2700de54a5fec72ce7214c137a1dc3a02d7b (patch) | |
| tree | 4f549da8c05be186f12442565389d9f3df44c6d7 /source/slang/lookup.cpp | |
| parent | a728612771cdaed66a0bdbfd25f8f250920f0f11 (diff) | |
Major naming overhaul:
- `ExpressionSyntaxNode` becomes `Expr`
- `StatementSyntaxNode` becomes `Stmt`
- `StructSyntaxNode` becomes `StructDecl`
- `ProgramSyntaxNode` becomes `ModuleDecl`
- `ExpressionType` becomes `Type`
- Existing fields names `Type` become `type`
- There might be some collateral damage here if there were, e.g., `enum`s named `Type`, but I can live with that for now and fix those up as a I see them
Diffstat (limited to 'source/slang/lookup.cpp')
| -rw-r--r-- | source/slang/lookup.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source/slang/lookup.cpp b/source/slang/lookup.cpp index b0e9ce971..3370b369b 100644 --- a/source/slang/lookup.cpp +++ b/source/slang/lookup.cpp @@ -8,7 +8,7 @@ namespace Slang { DeclRef<ExtensionDecl> ApplyExtensionToType( SemanticsVisitor* semantics, ExtensionDecl* extDecl, - RefPtr<ExpressionType> type); + RefPtr<Type> type); // @@ -74,11 +74,11 @@ bool DeclPassesLookupMask(Decl* decl, LookupMask mask) // type declarations if(auto aggTypeDecl = dynamic_cast<AggTypeDecl*>(decl)) { - return int(mask) & int(LookupMask::Type); + return int(mask) & int(LookupMask::type); } else if(auto simpleTypeDecl = dynamic_cast<SimpleTypeDecl*>(decl)) { - return int(mask) & int(LookupMask::Type); + return int(mask) & int(LookupMask::type); } // function declarations else if(auto funcDecl = dynamic_cast<FunctionDeclBase*>(decl)) @@ -154,7 +154,7 @@ LookupResultItem CreateLookupResultItem( void DoMemberLookupImpl( Session* session, String const& name, - RefPtr<ExpressionType> baseType, + RefPtr<Type> baseType, LookupRequest const& request, LookupResult& ioResult, BreadcrumbInfo* breadcrumbs) @@ -270,7 +270,7 @@ void DoLocalLookupImpl( // Consider lookup via extension if( auto aggTypeDeclRef = containerDeclRef.As<AggTypeDecl>() ) { - RefPtr<ExpressionType> type = DeclRefType::Create( + RefPtr<Type> type = DeclRefType::Create( session, aggTypeDeclRef); |
