58 references to Constants
Microsoft.Interop.JavaScript.JSImportGenerator (58)
JSExportGenerator.cs (24)
41.ForAttributeWithMetadataName(Constants.JSExportAttribute, 147Attribute(IdentifierName(Constants.DebuggerNonUserCodeAttribute)))))) 149Parameter(Identifier(Constants.ArgumentsBuffer)).WithType(PointerType(ParseTypeName(Constants.JSMarshalerArgumentGlobal)))))) 181&& attr.AttributeClass.ToDisplayString() == Constants.JSExportAttribute) 242Attribute(IdentifierName(Constants.ThreadStaticGlobal)))))); 257IdentifierName(Constants.ModuleInitializerAttributeGlobal)), 260IdentifierName(Constants.DynamicDependencyAttributeGlobal)) 270IdentifierName(Constants.DynamicallyAccessedMemberTypesGlobal), 274IdentifierName(Constants.DynamicallyAccessedMemberTypesGlobal), 299Attribute(IdentifierName(Constants.CompilerGeneratedAttributeGlobal))) 312IdentifierName(Constants.OSArchitectureGlobal), 313IdentifierName(Constants.ArchitectureWasmGlobal))), 332new ReferenceTypeInfo(Constants.ExceptionGlobal, Constants.ExceptionGlobal), 333new JSMarshallingInfo(NoMarshallingInfo.Instance, new JSSimpleTypeInfo(KnownManagedType.Exception, ParseTypeName(Constants.ExceptionGlobal))) 338InstanceIdentifier = Constants.ArgumentException, 375AttributeListSyntax registrationAttribute = AttributeList(SingletonSeparatedList(Attribute(IdentifierName(Constants.DynamicDependencyAttributeGlobal)) 405IdentifierName(Constants.ArgumentsBuffer), 410arguments.Add(Argument(IdentifierName(Constants.ArgumentsBuffer))); 418IdentifierName(Constants.ArgumentsBuffer), 436Attribute(IdentifierName(Constants.DebuggerNonUserCodeAttribute)))))); 449IdentifierName(Constants.JSFunctionSignatureGlobal), IdentifierName(Constants.BindCSFunctionMethod)))
JSImportGenerator.cs (15)
42.ForAttributeWithMetadataName(Constants.JSImportAttribute, 119Attribute(IdentifierName(Constants.DebuggerNonUserCodeAttribute)))))) 124FieldDeclarationSyntax sigField = FieldDeclaration(VariableDeclaration(IdentifierName(Constants.JSFunctionSignatureGlobal)) 164&& attr.AttributeClass.ToDisplayString() == Constants.JSImportAttribute) 224InstanceIdentifier = Constants.ArgumentException, 232InstanceIdentifier = Constants.ArgumentReturn, 308IdentifierName(Constants.JSFunctionSignatureGlobal), IdentifierName(Constants.BindJSFunctionMethod))) 315TypeSyntax jsMarshalerArgument = ParseTypeName(Constants.JSMarshalerArgumentGlobal); 329Constants.ArgumentsBuffer, 332IdentifierName(Constants.JSFunctionSignatureGlobal), 335Argument(IdentifierName(Constants.ArgumentsBuffer))), 338IdentifierName(Constants.ArgumentsBuffer), 347IdentifierName(Constants.JSFunctionSignatureGlobal), 359Attribute(IdentifierName(Constants.DebuggerNonUserCodeAttribute))))));
JSManagedTypeInfo.cs (7)
118case ITypeSymbol when fullTypeName == Constants.TaskGlobal: 120case INamedTypeSymbol { TypeArguments.Length: 1 } taskType when fullTypeName.StartsWith(Constants.TaskGlobal, StringComparison.Ordinal): 128case INamedTypeSymbol { TypeArguments.Length: 1 } spanType when fullTypeName.StartsWith(Constants.SpanGlobal, StringComparison.Ordinal): 136case INamedTypeSymbol { TypeArguments.Length: 1 } arraySegmentType when fullTypeName.StartsWith(Constants.ArraySegmentGlobal, StringComparison.Ordinal): 144case ITypeSymbol when fullTypeName == Constants.ActionGlobal: 146case INamedTypeSymbol actionType when fullTypeName.StartsWith(Constants.ActionGlobal, StringComparison.Ordinal): 157case INamedTypeSymbol funcType when fullTypeName.StartsWith(Constants.FuncGlobal, StringComparison.Ordinal):
JSMarshalAsAttributeInfoParser.cs (1)
19_jsMarshalAsAttribute = compilation.GetTypeByMetadataName(Constants.JSMarshalAsAttribute)!.ConstructUnboundGenericType();
Marshaling\BaseJSGenerator.cs (6)
17private static ValueTypeInfo JSMarshalerArgument = new ValueTypeInfo(Constants.JSMarshalerArgumentGlobal, Constants.JSMarshalerArgument, IsByRefLike: false); 61return IdentifierName(Constants.ToManagedBigMethod); 63return IdentifierName(Constants.ToManagedMethod); 72return IdentifierName(Constants.ToJSBigMethod); 74return IdentifierName(Constants.ToJSMethod);
Marshaling\FuncJSGenerator.cs (2)
98.WithType(IdentifierName(Constants.JSMarshalerArgumentGlobal)), 113.WithType(IdentifierName(Constants.JSMarshalerArgumentGlobal)),
Marshaling\TaskJSGenerator.cs (2)
79.WithType(IdentifierName(Constants.JSMarshalerArgumentGlobal)), 102.WithType(IdentifierName(Constants.JSMarshalerArgumentGlobal)),
SignatureBindingHelpers.cs (1)
36return IdentifierName(Constants.JSMarshalerTypeGlobalDot + marshalerType.ToString());