From 4b284daeb0cc3f6df0835befad4326c81abeb374 Mon Sep 17 00:00:00 2001 From: Yong He Date: Tue, 9 Jan 2018 13:26:42 -0800 Subject: Support nested generics fixes #362 --- source/slang/slang.natvis | 42 ++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 40 insertions(+), 2 deletions(-) (limited to 'source/slang/slang.natvis') diff --git a/source/slang/slang.natvis b/source/slang/slang.natvis index d58e733fa..93979f473 100644 --- a/source/slang/slang.natvis +++ b/source/slang/slang.natvis @@ -12,23 +12,59 @@ decl ? ($T1*)(decl) : ($T1*)0 DeclRef nullptr - DeclRef {(*(*(Slang::DeclRefBase*)this).decl).nameAndLoc} + {(*(*(Slang::DeclRefBase*)this).decl).nameAndLoc} decl ? ($T1*)(decl) : ($T1*)0 "=========================" - substitutions.pointer + substitutions.genericSubstitutions.pointer outer.pointer this + + substitutions.globalGenParamSubstitutions.pointer + outer.pointer + this + + substitutions.thisTypeSubstitution + + decl + DeclRefBase nullptr + {(*(*(Slang::DeclRefBase*)this).decl).nameAndLoc} + + decl + "=========================" + + substitutions.genericSubstitutions.pointer + outer.pointer + this + + + substitutions.globalGenParamSubstitutions.pointer + outer.pointer + this + + substitutions.thisTypeSubstitution + + + + GenSubst {(*genericDecl).nameAndLoc} + + genericDecl + args + + DeclRefType {declRef} declRef + + FuncDecl {nameAndLoc} + {{name={(char*)(text.buffer.pointer+1), s}}} @@ -88,6 +124,8 @@ (*(IRFuncType*)(type.pointer)).resultType (*(IRFuncType*)(type.pointer)).paramTypes firstBlock + specializedGenericLevel + genericDecls -- cgit v1.2.3