Loyc.Ecs.Parser.EcsParser.Scan_TParamDeclOrDataType C# (CSharp) Method

Scan_TParamDeclOrDataType() private method

private Scan_TParamDeclOrDataType ( bool declarationContext ) : bool
declarationContext bool
return bool
		bool Scan_TParamDeclOrDataType(bool declarationContext)
		{
			// Line 218: (DataType / &{declarationContext} NormalAttributes TParamAttributeKeywords IdAtom)
			switch (LA0) {
			case TT.ContextualKeyword: case TT.Id: case TT.Operator: case TT.Substitute:
			case TT.TypeKeyword:
				if (!Scan_DataType(false))
					return false;
				break;
			default:
				{
					if (!declarationContext)
						return false;
					if (!Scan_NormalAttributes())
						return false;
					if (!Scan_TParamAttributeKeywords())
						return false;
					if (!Scan_IdAtom())
						return false;
				}
				break;
			}
			return true;
		}
	
EcsParser