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