• Home
  • Raw
  • Download

Lines Matching refs:KeyWord

15     { "",           KeyWord::kNone,         KeyProperty::kNone           },
16 { "SK_API", KeyWord::kSK_API, KeyProperty::kModifier },
17 { "SK_BEGIN_REQUIRE_DENSE", KeyWord::kSK_BEGIN_REQUIRE_DENSE, KeyProperty::kModifier },
18 { "alignas", KeyWord::kAlignAs, KeyProperty::kModifier },
19 { "bool", KeyWord::kBool, KeyProperty::kNumber },
20 { "char", KeyWord::kChar, KeyProperty::kNumber },
21 { "class", KeyWord::kClass, KeyProperty::kObject },
22 { "const", KeyWord::kConst, KeyProperty::kModifier },
23 { "constexpr", KeyWord::kConstExpr, KeyProperty::kModifier },
24 { "define", KeyWord::kDefine, KeyProperty::kPreprocessor },
25 { "double", KeyWord::kDouble, KeyProperty::kNumber },
26 { "elif", KeyWord::kElif, KeyProperty::kPreprocessor },
27 { "else", KeyWord::kElse, KeyProperty::kPreprocessor },
28 { "endif", KeyWord::kEndif, KeyProperty::kPreprocessor },
29 { "enum", KeyWord::kEnum, KeyProperty::kObject },
30 { "error", KeyWord::kError, KeyProperty::kPreprocessor },
31 { "float", KeyWord::kFloat, KeyProperty::kNumber },
32 { "friend", KeyWord::kFriend, KeyProperty::kModifier },
33 { "if", KeyWord::kIf, KeyProperty::kPreprocessor },
34 { "ifdef", KeyWord::kIfdef, KeyProperty::kPreprocessor },
35 { "ifndef", KeyWord::kIfndef, KeyProperty::kPreprocessor },
36 { "include", KeyWord::kInclude, KeyProperty::kPreprocessor },
37 { "inline", KeyWord::kInline, KeyProperty::kModifier },
38 { "int", KeyWord::kInt, KeyProperty::kNumber },
39 { "operator", KeyWord::kOperator, KeyProperty::kFunction },
40 { "private", KeyWord::kPrivate, KeyProperty::kClassSection },
41 { "protected", KeyWord::kProtected, KeyProperty::kClassSection },
42 { "public", KeyWord::kPublic, KeyProperty::kClassSection },
43 { "signed", KeyWord::kSigned, KeyProperty::kNumber },
44 { "size_t", KeyWord::kSize_t, KeyProperty::kNumber },
45 { "static", KeyWord::kStatic, KeyProperty::kModifier },
46 { "struct", KeyWord::kStruct, KeyProperty::kObject },
47 { "template", KeyWord::kTemplate, KeyProperty::kObject },
48 { "typedef", KeyWord::kTypedef, KeyProperty::kObject },
49 { "typename", KeyWord::kTypename, KeyProperty::kObject },
50 { "uint16_t", KeyWord::kUint16_t, KeyProperty::kNumber },
51 { "uint32_t", KeyWord::kUint32_t, KeyProperty::kNumber },
52 { "uint64_t", KeyWord::kUint64_t, KeyProperty::kNumber },
53 { "uint8_t", KeyWord::kUint8_t, KeyProperty::kNumber },
54 { "uintptr_t", KeyWord::kUintPtr_t, KeyProperty::kNumber },
55 { "union", KeyWord::kUnion, KeyProperty::kObject },
56 { "unsigned", KeyWord::kUnsigned, KeyProperty::kNumber },
57 { "using", KeyWord::kUsing, KeyProperty::kObject },
58 { "void", KeyWord::kVoid, KeyProperty::kNumber },
63 KeyWord IncludeParser::FindKey(const char* start, const char* end) { in FindKey()
70 return KeyWord::kNone; in FindKey()
75 return KeyWord::kNone; in FindKey()
80 return KeyWord::kNone; in FindKey()
85 return KeyWord::kNone; in FindKey()
96 void IncludeParser::addKeyword(KeyWord keyWord) { in addKeyword()
102 if (KeyWord::kEnum == fParent->fKeyWord) { in addKeyword()
627 KeyWord keyWord = FindKey(fIncludeWord, fChar); in checkForWord()
628 if (KeyWord::kClass == keyWord || KeyWord::kStruct == keyWord) { in checkForWord()
634 if (KeyWord::kNone != keyWord) { in checkForWord()
653 if (KeyWord::kNone != poundDef->fKeyWord) { in checkForWord()
660 case KeyWord::kDefine: in checkForWord()
665 case KeyWord::kInclude: in checkForWord()
666 case KeyWord::kError: in checkForWord()
669 case KeyWord::kIf: in checkForWord()
670 case KeyWord::kIfdef: in checkForWord()
671 case KeyWord::kIfndef: in checkForWord()
674 case KeyWord::kElif: in checkForWord()
675 case KeyWord::kElse: in checkForWord()
685 case KeyWord::kEndif: in checkForWord()
1142 if (Definition::Type::kMark == test->fType && KeyWord::kClass == test->fKeyWord) { in defineClass()
1164 markupDef.fMarkType = KeyWord::kStruct == includeDef.fKeyWord ? in defineClass()
1501 if (KeyWord::kStruct != structToken->fKeyWord) { in isMember()
1506 if (KeyWord::kStruct != structToken->fKeyWord) { in isMember()
1616 SkASSERT(KeyWord::kClass == classMap.fKeyWord || KeyWord::kStruct == classMap.fKeyWord); in dumpTokens()
1617 const char* containerType = KeyWord::kClass == classMap.fKeyWord ? "Class" : "Struct"; in dumpTokens()
1639 KeyWord keyword = oneClass.second.fKeyWord; in dumpTokens()
1640 SkASSERT(KeyWord::kClass == keyword || KeyWord::kStruct == keyword); in dumpTokens()
1641 const char* containerType = KeyWord::kClass == keyword ? "Class" : "Struct"; in dumpTokens()
1681 SkASSERT(KeyWord::kStruct == iDef.fKeyWord || KeyWord::kClass == iDef.fKeyWord in elidedCodeBlock()
1682 || KeyWord::kTemplate == iDef.fKeyWord); in elidedCodeBlock()
1686 if (KeyWord::kTemplate == iDef.fKeyWord) { // may be function in elidedCodeBlock()
1937 return KeyWord::kAlignAs == reverseIter->fKeyWord; in inAlignAs()
1962 bool hasAlignAs = iter->fKeyWord == KeyWord::kAlignAs; in parseClass()
2018 const char* publicName = kKeyWords[(int) KeyWord::kPublic].fName; in parseClass()
2029 KeyWord currentKey = KeyWord::kPublic; in parseClass()
2030 const char* publicName = kKeyWords[(int) KeyWord::kPublic].fName; in parseClass()
2032 const char* protectedName = kKeyWords[(int) KeyWord::kProtected].fName; in parseClass()
2034 const char* privateName = kKeyWords[(int) KeyWord::kPrivate].fName; in parseClass()
2043 iter->fPrivate = KeyWord::kPublic != currentKey; in parseClass()
2049 currentKey = KeyWord::kPublic; in parseClass()
2053 currentKey = KeyWord::kProtected; in parseClass()
2057 currentKey = KeyWord::kPrivate; in parseClass()
2062 if (KeyWord::kPublic == currentKey) { in parseClass()
2071 iter->fPrivate = KeyWord::kPublic != currentKey; in parseClass()
2124 KeyWord::kEnum != markupDef->fKeyWord) { in parseComment()
2295 if (Definition::Type::kKeyWord == token->fType && KeyWord::kClass == token->fKeyWord) { in parseEnum()
2318 SkASSERT(KeyWord::kNone == markupChild->fKeyWord); in parseEnum()
2319 markupChild->fKeyWord = KeyWord::kEnum; in parseEnum()
2340 if (KeyWord::kClass == outsideMember->fKeyWord) { in parseEnum()
2343 SkASSERT(KeyWord::kStatic == outsideMember->fKeyWord); in parseEnum()
2389 KeyWord keyWord = memberIter->fKeyWord; in parseOneEnumConst()
2390 bool sawIf = KeyWord::kIfdef == keyWord || KeyWord::kIf == keyWord in parseOneEnumConst()
2391 || KeyWord::kElif == keyWord; in parseOneEnumConst()
2392 if (sawIf || KeyWord::kElse == keyWord) { in parseOneEnumConst()
2397 SkASSERT(KeyWord::kEndif == keyWord || KeyWord::kError == keyWord); in parseOneEnumConst()
2543 if (KeyWord::kOperator == operatorCheck->fKeyWord) { in parseMethod()
2550 KeyWord::kConst == closeParen->fKeyWord) { in parseMethod()
2564 (KeyWord::kIfdef == child->fParent->fKeyWord || in parseMethod()
2565 KeyWord::kIfndef == child->fParent->fKeyWord || in parseMethod()
2566 KeyWord::kIf == child->fParent->fKeyWord)) { in parseMethod()
2599 && KeyWord::kTemplate != child->fParent->fKeyWord; in parseMethod()
2604 if (tokenIter->fParent && KeyWord::kIfdef == tokenIter->fParent->fKeyWord && in parseMethod()
2710 case KeyWord::kClass: in parseObject()
2715 case KeyWord::kStatic: in parseObject()
2716 case KeyWord::kConst: in parseObject()
2717 case KeyWord::kConstExpr: in parseObject()
2722 case KeyWord::kEnum: in parseObject()
2727 case KeyWord::kStruct: in parseObject()
2732 case KeyWord::kTemplate: in parseObject()
2737 case KeyWord::kTypedef: in parseObject()
2742 case KeyWord::kUnion: in parseObject()
2747 case KeyWord::kUsing: in parseObject()
2768 KeyWord::kIf == child->fParent->fKeyWord) { in parseObject()
2793 case KeyWord::kIf: in parseObject()
2794 case KeyWord::kIfndef: in parseObject()
2795 case KeyWord::kIfdef: in parseObject()
2803 case KeyWord::kDefine: in parseObject()
2808 case KeyWord::kEndif: in parseObject()
2812 case KeyWord::kError: in parseObject()
2813 case KeyWord::kInclude: in parseObject()
2816 case KeyWord::kElse: in parseObject()
2821 case KeyWord::kElif: in parseObject()
2841 if (KeyWord::kOperator != prev->fKeyWord) { in parseObject()
2937 KeyWord keyWord = fParent->fKeyWord; in parseChar()
2938 if (KeyWord::kNone == keyWord) { in parseChar()
2942 SkASSERT(KeyWord::kDefine == keyWord); in parseChar()
2945 … if (KeyWord::kInclude == keyWord || KeyWord::kDefine == keyWord || KeyWord::kError == keyWord) { in parseChar()
2949 SkASSERT(KeyWord::kDefine == fInBrace->fKeyWord); in parseChar()
3146 SkASSERT(KeyWord::kDefine == fParent->fKeyWord); in parseChar()
3199 if (KeyWord::kTemplate == lineIter->fKeyWord) { in parseChar()
3207 if (KeyWord::kTypename != lineIter->fKeyWord) { in parseChar()
3217 } else if (KeyWord::kStatic == lineIter->fKeyWord) { in parseChar()
3223 } else if (KeyWord::kConst == lineIter->fKeyWord in parseChar()
3224 || KeyWord::kConstExpr == lineIter->fKeyWord) { in parseChar()
3271 bool parentIsClass = KeyWord::kClass == fParent->fKeyWord; in parseChar()
3273 KeyWord::kEnum == fParent->fParent->fKeyWord) { in parseChar()
3276 if (KeyWord::kEnum == fParent->fKeyWord) { in parseChar()
3279 parentIsClass |= KeyWord::kStruct == fParent->fKeyWord; in parseChar()
3281 if (parentIsClass && fParent && KeyWord::kTemplate == fParent->fKeyWord) { in parseChar()
3287 && KeyWord::kStruct == fParent->fParent->fKeyWord) { in parseChar()
3338 && KeyWord::kEnum == priorEnum->fKeyWord) { in parseChar()
3360 for (KeyWord expected : {KeyWord::kStatic, KeyWord::kConstExpr, KeyWord::kInt}){ in parseChar()
3374 … for (KeyWord expected : {KeyWord::kStatic, KeyWord::kConst, KeyWord::kNone}){ in parseChar()
3383 if (KeyWord::kNone != expected) { in parseChar()