Ejemplo n.º 1
0
 public void Inject(TypeIdParserScanData data)
 {
     if (this.IsValidEndState)
     {
         data.AddCapture(this.GetCapture(), TypeIdParserTokens.Number);
     }
 }
Ejemplo n.º 2
0
 public void Inject(TypeIdParserScanData data)
 {
     if (this.IsValidEndState)
     {
         data.AddCapture(this.GetCapture(), TypeIdParserTokens.NestedQualifiedAssemblyIdentifier);
     }
 }
Ejemplo n.º 3
0
        public void Inject(TypeIdParserScanData data)
        {
            if (this.IsValidEndState)
            {
                switch (this.exitState)
                {
                case ExitStates.Culture:
                    // Exit point for Culture.
                    if ((this.AllowedAssemblyTerminals & AssemblyTerminalCases.Culture) != AssemblyTerminalCases.None)
                    {
                        data.AddAssemblyTerminals(AssemblyTerminalCases.Culture);
                    }
                    break;

                case ExitStates.KeyToken:
                    // Exit point for KeyToken.
                    if ((this.AllowedAssemblyTerminals & AssemblyTerminalCases.KeyToken) != AssemblyTerminalCases.None)
                    {
                        data.AddAssemblyTerminals(AssemblyTerminalCases.KeyToken);
                    }
                    break;

                case ExitStates.NullPublicKeyToken:
                    // Exit point for NullPublicKeyToken.
                    if ((this.AllowedAssemblyTerminals & AssemblyTerminalCases.NullPublicKeyToken) != AssemblyTerminalCases.None)
                    {
                        data.AddAssemblyTerminals(AssemblyTerminalCases.NullPublicKeyToken);
                    }
                    break;

                case ExitStates.Version:
                    // Exit point for Version.
                    if ((this.AllowedAssemblyTerminals & AssemblyTerminalCases.Version) != AssemblyTerminalCases.None)
                    {
                        data.AddAssemblyTerminals(AssemblyTerminalCases.Version);
                    }
                    break;
                }
            }
        }
Ejemplo n.º 4
0
        public void Inject(TypeIdParserScanData data)
        {
            if (this.IsValidEndState)
            {
                switch (this.exitState)
                {
                case ExitStates.ByRefCallout:
                    // Exit point for ByRefCallout.
                    if ((this.AllowedCommonSymbols & CommonSymbolCases.ByRefCallout) != CommonSymbolCases.None)
                    {
                        data.AddCommonSymbols(CommonSymbolCases.ByRefCallout);
                    }
                    break;

                case ExitStates.Comma:
                    // Exit point for Comma.
                    if ((this.AllowedCommonSymbols & CommonSymbolCases.Comma) != CommonSymbolCases.None)
                    {
                        data.AddCommonSymbols(CommonSymbolCases.Comma);
                    }
                    break;

                case ExitStates.Equals:
                    // Exit point for Equals.
                    if ((this.AllowedCommonSymbols & CommonSymbolCases.Equals) != CommonSymbolCases.None)
                    {
                        data.AddCommonSymbols(CommonSymbolCases.Equals);
                    }
                    break;

                case ExitStates.GenericParameterSignal:
                    // Exit point for GenericParameterSignal.
                    if ((this.AllowedCommonSymbols & CommonSymbolCases.GenericParameterSignal) != CommonSymbolCases.None)
                    {
                        data.AddCommonSymbols(CommonSymbolCases.GenericParameterSignal);
                    }
                    break;

                case ExitStates.LeftSquareBracket:
                    // Exit point for LeftSquareBracket.
                    if ((this.AllowedCommonSymbols & CommonSymbolCases.LeftSquareBracket) != CommonSymbolCases.None)
                    {
                        data.AddCommonSymbols(CommonSymbolCases.LeftSquareBracket);
                    }
                    break;

                case ExitStates.NestingQualifier:
                    // Exit point for NestingQualifier.
                    if ((this.AllowedCommonSymbols & CommonSymbolCases.NestingQualifier) != CommonSymbolCases.None)
                    {
                        data.AddCommonSymbols(CommonSymbolCases.NestingQualifier);
                    }
                    break;

                case ExitStates.Period:
                    // Exit point for Period.
                    if ((this.AllowedCommonSymbols & CommonSymbolCases.Period) != CommonSymbolCases.None)
                    {
                        data.AddCommonSymbols(CommonSymbolCases.Period);
                    }
                    break;

                case ExitStates.PointerCallout:
                    // Exit point for PointerCallout.
                    if ((this.AllowedCommonSymbols & CommonSymbolCases.PointerCallout) != CommonSymbolCases.None)
                    {
                        data.AddCommonSymbols(CommonSymbolCases.PointerCallout);
                    }
                    break;

                case ExitStates.QuoteChar:
                    // Exit point for QuoteChar.
                    if ((this.AllowedCommonSymbols & CommonSymbolCases.QuoteChar) != CommonSymbolCases.None)
                    {
                        data.AddCommonSymbols(CommonSymbolCases.QuoteChar);
                    }
                    break;

                case ExitStates.RightSquareBracket:
                    // Exit point for RightSquareBracket.
                    if ((this.AllowedCommonSymbols & CommonSymbolCases.RightSquareBracket) != CommonSymbolCases.None)
                    {
                        data.AddCommonSymbols(CommonSymbolCases.RightSquareBracket);
                    }
                    break;
                }
            }
        }