@@ -258,41 +258,20 @@ extension SSGC.TypeChecker
258
258
return
259
259
}
260
260
261
- guard self . ignoreExportedInterfaces || member. culture == culture
262
- else
263
- {
264
- throw AssertionError . init ( message: """
265
- Found cross-module member relationship \
266
- (from \( member. culture) in \( culture) ), which should not be possible in \
267
- symbol dumps generated with '-emit-extension-symbols'
268
- """ )
269
- }
270
-
271
261
switch relationship. target
272
262
{
273
263
case . vector( let symbol) :
274
264
// Nothing can be a member of a vector symbol.
275
265
throw SSGC . UnexpectedSymbolError. vector ( symbol)
276
266
277
267
case . scalar( let scope) :
278
- // We should never see an external type reference here either.
279
268
guard
280
269
let scope: SSGC . DeclObject = self . declarations [ visible: scope]
281
270
else
282
271
{
283
272
return
284
273
}
285
274
286
- guard self . ignoreExportedInterfaces || scope. culture == culture
287
- else
288
- {
289
- throw AssertionError . init ( message: """
290
- Found cross-module member relationship \
291
- (to \( scope. culture) in \( culture) ), which should not be possible in \
292
- symbol dumps generated with '-emit-extension-symbols'
293
- """ )
294
- }
295
-
296
275
// Enum cases are considered intrinsic members of their parent enum.
297
276
if case . case = member. value. phylum
298
277
{
@@ -358,16 +337,6 @@ extension SSGC.TypeChecker
358
337
return
359
338
}
360
339
361
- guard self . ignoreExportedInterfaces || type. culture == culture
362
- else
363
- {
364
- throw AssertionError . init ( message: """
365
- Found cross-module conformance relationship \
366
- (from \( type. culture) in \( culture) ), which should not be possible in \
367
- symbol dumps generated with '-emit-extension-symbols'
368
- """ )
369
- }
370
-
371
340
if let origin: Symbol . Decl = conformance. origin
372
341
{
373
342
type. assign ( origin: origin)
@@ -422,14 +391,6 @@ extension SSGC.TypeChecker
422
391
return
423
392
}
424
393
425
- guard self . ignoreExportedInterfaces || subform. culture == culture
426
- else
427
- {
428
- throw AssertionError . init ( message: """
429
- Found retroactive superform relationship (from \( subform. culture) in \( culture) )
430
- """ )
431
- }
432
-
433
394
try subform. add ( superform: relationship)
434
395
435
396
/// Having a universal witness is not intrinsic, but it is useful to know
@@ -459,8 +420,6 @@ extension SSGC.TypeChecker
459
420
throw SSGC . UnexpectedSymbolError. vector ( symbol)
460
421
461
422
case . scalar( let symbol) :
462
- // If the colonial graph was generated with '-emit-extension-symbols',
463
- // we should never see an external type reference here.
464
423
if let decl: SSGC . DeclObject = self . declarations [ visible: symbol]
465
424
{
466
425
heir = decl
@@ -470,16 +429,6 @@ extension SSGC.TypeChecker
470
429
return
471
430
}
472
431
473
- guard self . ignoreExportedInterfaces || heir. culture == culture
474
- else
475
- {
476
- throw AssertionError . init ( message: """
477
- Found direct cross-module feature inheritance relationship in culture \
478
- ' \( culture) ' adding feature ' \( feature. value. path) ' to type \
479
- ' \( heir. value. path) ' from ' \( heir. culture) ', which should not be \
480
- possible in symbol dumps generated with '-emit-extension-symbols'
481
- """ )
482
- }
483
432
guard heir. id == relationship. source. heir
484
433
else
485
434
{
0 commit comments