src/Validate/FindSpecialDeclsNew.cpp
void findGlobalDecls( ast::TranslationUnit & translationUnit ) {
	ast::Pass<FindDeclsCore>::run( translationUnit, translationUnit.global );

	// TODO: When everything gets the globals from the translation unit,
	// remove these.
	ast::dereferenceOperator = translationUnit.global.dereference;
	ast::dtorStruct = translationUnit.global.dtorStruct;
	ast::dtorStructDestroy = translationUnit.global.dtorDestroy;

	// TODO: conditionally generate 'fake' declarations for missing features,
	// so that translation can proceed in the event that builtins, prelude,
	// etc. are missing.
}
// Fill the TranslationUnit's dereference, dtorStruct and dtorDestroy fields.
Fill the TranslationUnit's dereference, dtorStruct and dtorDestroy fields.
Fill the TranslationUnit ' s dereference dtorStruct and dtorDestroy fields .
void findGlobalDecls( ast::TranslationUnit & translationUnit ) {
	ast::Pass<FindDeclsCore>::run( translationUnit, translationUnit.global );
	ast::dereferenceOperator = translationUnit.global.dereference;
	ast::dtorStruct = translationUnit.global.dtorStruct;
	ast::dtorStructDestroy = translationUnit.global.dtorDestroy;
}
void findGlobalDecls ( ast :: TranslationUnit & translationUnit ) { ast :: Pass < FindDeclsCore > :: run ( translationUnit , translationUnit . global ) ; ast :: dereferenceOperator = translationUnit . global . dereference ; ast :: dtorStruct = translationUnit . global . dtorStruct ; ast :: dtorStructDestroy = translationUnit . global . dtorDestroy ; }
Fill the TranslationUnit's dereference, dtorStruct and dtorDestroy fields.
Fill the TranslationUnit ' s dereference dtorStruct and dtorDestroy fields .
// TODO: When everything gets the globals from the translation unit, // remove these. // TODO: conditionally generate 'fake' declarations for missing features, // so that translation can proceed in the event that builtins, prelude, // etc. are missing.