diff options
author | 2018-06-28 12:32:46 -0700 | |
---|---|---|
committer | 2018-06-28 12:33:55 -0700 | |
commit | 030448ab0570d04c450b8531215411809307481e (patch) | |
tree | 9c5118c833a58306b915fd21118c70a8955cc274 /src/main/java/com/google/devtools/build/skydoc/fakebuildapi/FakeProviderApi.java | |
parent | 358c5157508bf3a867da68c9523352edd5607e60 (diff) |
Add rudimentary apple-related classes to fakebuildapi.
These fakes won't behave at all like real implementations at this time. In fact, invoking some of their methods (or accessing their fields) may result in an error. This serves, however, as the initial check-in which can be iterated on and improved later.
RELNOTES: None.
PiperOrigin-RevId: 202525168
Diffstat (limited to 'src/main/java/com/google/devtools/build/skydoc/fakebuildapi/FakeProviderApi.java')
-rw-r--r-- | src/main/java/com/google/devtools/build/skydoc/fakebuildapi/FakeProviderApi.java | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/main/java/com/google/devtools/build/skydoc/fakebuildapi/FakeProviderApi.java b/src/main/java/com/google/devtools/build/skydoc/fakebuildapi/FakeProviderApi.java new file mode 100644 index 0000000000..cdf8ef1f6e --- /dev/null +++ b/src/main/java/com/google/devtools/build/skydoc/fakebuildapi/FakeProviderApi.java @@ -0,0 +1,27 @@ +// Copyright 2018 The Bazel Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package com.google.devtools.build.skydoc.fakebuildapi; + +import com.google.devtools.build.lib.skylarkbuildapi.ProviderApi; +import com.google.devtools.build.lib.skylarkinterface.SkylarkPrinter; + +/** + * Fake implementation of {@link ProviderApi}. + */ +public class FakeProviderApi implements ProviderApi { + + @Override + public void repr(SkylarkPrinter printer) {} +} |