규칙 3.7
3장, 텍스트 구조와 이름 리뷰
A new surface section must take the next free § number in docs/use-typeshade-surface.md as the current tree makes it, and a new diagnostic must take the next free TS80xx code in src/compiler/ts/codes.ts.
A branch working in parallel may instead be handed a block of numbers and take the number from the block.
A number must not be renumbered, a retired number must not be reused, and the unused numbers of a block must stay a gap.
규칙 본문과 그 아래 항목은 설계 문서에 적힌 컴파일러 원문이라 한국어 페이지에서도 영어로 둡니다.
근거
a section number and a code are cited from issues, tests, and CHANGELOG entries that do not move when the document does.
출처
검증 방식
리뷰로 지킵니다. 확인하는 파일은 없고, 규칙 스스로 리뷰가 지킨다고 적어 두었습니다.
컴파일러가 이 규칙을 적용하는 곳을 규칙이 직접 적은 내용입니다.
review; src/compiler/ts/codes.ts is a hot-spot file (Rule 13.5).
커밋 c66579bf에서 이 규칙을 확인하는 파일입니다. 파일마다 규칙을 처음 가리키는 줄로 연결했습니다.
함께 보기
소스
커밋 c66579bf의 규칙 원문:
docs/language-design.md:245(설계 문서)reqs/rules/RULE-0307.md(추적 항목)