From 7fce9b4bdb8c036bbdd34b0b0bc6f09c01d802ce Mon Sep 17 00:00:00 2001 From: Hixie Date: Wed, 10 Jun 2015 12:45:55 -0700 Subject: [PATCH] Mention typedefs in the sky dart style guide. TBR=jackson Review URL: https://codereview.chromium.org/1178523005 --- specs/style-guide.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/specs/style-guide.md b/specs/style-guide.md index b1f65d64e81..c518bc429f5 100644 --- a/specs/style-guide.md +++ b/specs/style-guide.md @@ -17,10 +17,11 @@ output of the analyzer unless you've filed a bug with the Dart team. Use assert()s liberally. -Classes and Enums are named UpperCamelCase. Everything else (methods, -fields, variables, constants, enum values, etc) is lowerCamelCase. -Global double and string constants are prefixed with k. Prefer using a -static const in a relevant class than using a global constant. +Types (i.e. classes, typedefs (function signature definitions) and +enums) are named UpperCamelCase. Everything else (methods, fields, +variables, constants, enum values, etc) is lowerCamelCase. Global +double and string constants are prefixed with k. Prefer using a static +const in a relevant class than using a global constant. Don't name your libraries (no ```library``` keyword). Name the files in ```lower_under_score.dart``` format.