private void Build(ValueTypeSyntax type, Binder containingScope) { type.Match() .With <PredefinedTypeSyntax>(predefinedType => { // Not really sure this makes sense since a predefined type is a keyword binders.Add(predefinedType, containingScope); }) .With <GenericNameSyntax>(genericName => { binders.Add(genericName, containingScope); // TODO associate the type parameters }) .With <IdentifierNameSyntax>(identifierName => { binders.Add(identifierName, containingScope); }) .Exhaustive(); }
private void Build(ValueTypeSyntax type, Binder containingScope) { type.Match() .With<PredefinedTypeSyntax>(predefinedType => { // Not really sure this makes sense since a predefined type is a keyword binders.Add(predefinedType, containingScope); }) .With<GenericNameSyntax>(genericName => { binders.Add(genericName, containingScope); // TODO associate the type parameters }) .With<IdentifierNameSyntax>(identifierName => { binders.Add(identifierName, containingScope); }) .Exhaustive(); }