From 695c2700de54a5fec72ce7214c137a1dc3a02d7b Mon Sep 17 00:00:00 2001 From: Tim Foley Date: Wed, 9 Aug 2017 10:13:40 -0700 Subject: 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 --- source/slang/lookup.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'source/slang/lookup.cpp') 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 ApplyExtensionToType( SemanticsVisitor* semantics, ExtensionDecl* extDecl, - RefPtr type); + RefPtr type); // @@ -74,11 +74,11 @@ bool DeclPassesLookupMask(Decl* decl, LookupMask mask) // type declarations if(auto aggTypeDecl = dynamic_cast(decl)) { - return int(mask) & int(LookupMask::Type); + return int(mask) & int(LookupMask::type); } else if(auto simpleTypeDecl = dynamic_cast(decl)) { - return int(mask) & int(LookupMask::Type); + return int(mask) & int(LookupMask::type); } // function declarations else if(auto funcDecl = dynamic_cast(decl)) @@ -154,7 +154,7 @@ LookupResultItem CreateLookupResultItem( void DoMemberLookupImpl( Session* session, String const& name, - RefPtr baseType, + RefPtr baseType, LookupRequest const& request, LookupResult& ioResult, BreadcrumbInfo* breadcrumbs) @@ -270,7 +270,7 @@ void DoLocalLookupImpl( // Consider lookup via extension if( auto aggTypeDeclRef = containerDeclRef.As() ) { - RefPtr type = DeclRefType::Create( + RefPtr type = DeclRefType::Create( session, aggTypeDeclRef); -- cgit v1.2.3