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

TParamDeclOrDataType() private method

private TParamDeclOrDataType ( bool declarationContext ) : LNode
declarationContext bool
return LNode
		LNode TParamDeclOrDataType(bool declarationContext)
		{
			LNode result = default(LNode);
			VList<LNode> attrs = default(VList<LNode>);
			int startIndex = GetTextPosition(InputPosition);
			// Line 218: (DataType / &{declarationContext} NormalAttributes TParamAttributeKeywords IdAtom)
			switch (LA0) {
			case TT.ContextualKeyword: case TT.Id: case TT.Operator: case TT.Substitute:
			case TT.TypeKeyword:
				result = DataType(false);
				break;
			default:
				{
					Check(declarationContext, "Expected declarationContext");
					NormalAttributes(ref attrs);
					TParamAttributeKeywords(ref attrs);
					result = IdAtom();
				}
				break;
			}
			result = result.WithAttrs(attrs);
			return result;
		}
	
EcsParser