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

Scan_ComplexThisDecl() private method

private Scan_ComplexThisDecl ( bool allowed ) : bool
allowed bool
return bool
		bool Scan_ComplexThisDecl(bool allowed)
		{
			TokenType la0;
			if (!TryMatch((int) TT.This))
				return false;
			// Line 246: (TParams)?
			la0 = LA0;
			if (la0 == TT.Dot || la0 == TT.LT || la0 == TT.Not) {
				switch (LA(1)) {
				case TT.AttrKeyword: case TT.ContextualKeyword: case TT.GT: case TT.Id:
				case TT.In: case TT.LBrack: case TT.LParen: case TT.Operator:
				case TT.Substitute: case TT.TypeKeyword:
					if (!Scan_TParams(true))
						return false;
					break;
				}
			}
			return true;
		}
	
EcsParser